Fixed Dockerfile
This commit is contained in:
parent
752ecd0dce
commit
1e371473ad
@ -13,14 +13,13 @@ RUN npm pack stackedit@$V4_VERSION \
|
|||||||
WORKDIR /opt/stackedit
|
WORKDIR /opt/stackedit
|
||||||
|
|
||||||
COPY package.json /opt/stackedit/
|
COPY package.json /opt/stackedit/
|
||||||
COPY yarn.lock /opt/stackedit/
|
COPY package-lock.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
|
|
||||||
COPY . /opt/stackedit
|
COPY . /opt/stackedit
|
||||||
ENV NODE_ENV production
|
ENV NODE_ENV production
|
||||||
RUN yarn run build
|
RUN npm run build
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user