Fixed Dockerfile

This commit is contained in:
benweet 2018-01-18 21:55:59 +00:00
parent 2ad55c34ea
commit ba258a96f6

View File

@ -15,8 +15,8 @@ WORKDIR /opt/stackedit
COPY package.json /opt/stackedit/ COPY package.json /opt/stackedit/
COPY yarn.lock /opt/stackedit/ COPY yarn.lock /opt/stackedit/
COPY gulpfile.js /opt/stackedit/ COPY gulpfile.js /opt/stackedit/
RUN npm install RUN npm install \
&& npm cache clean --force && npm cache clean --force \
&& npm run build && npm run build
COPY . /opt/stackedit COPY . /opt/stackedit
ENV NODE_ENV production ENV NODE_ENV production