Make node-sass dependents optional to speed up build process

This commit is contained in:
2017-02-10 10:36:34 +00:00
parent 49a6ffd314
commit 14e7aeeb5c
2 changed files with 10 additions and 11 deletions

View File

@@ -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