Make node-sass dependents optional to speed up build process
This commit is contained in:
@@ -4,15 +4,12 @@ ENV DATABASE_PATH db/wedding.db
|
||||
ENV PORT 80
|
||||
EXPOSE 80
|
||||
|
||||
# Install additional dependencies
|
||||
RUN apk add --no-cache make gcc g++ python
|
||||
|
||||
# Copy app
|
||||
COPY ./ /usr/src/app
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# Install dev dependencies and build release
|
||||
RUN npm install --silent
|
||||
RUN npm install --no-optional --silent
|
||||
RUN npm run build --release --silent
|
||||
|
||||
WORKDIR /usr/src/app/build
|
||||
|
||||
Reference in New Issue
Block a user