mirror of
https://gitee.com/mafgwo/stackedit
synced 2024-11-16 03:32:40 +08:00
Fixed Dockerfile
This commit is contained in:
parent
752ecd0dce
commit
1e371473ad
|
@ -13,14 +13,13 @@ RUN npm pack stackedit@$V4_VERSION \
|
|||
WORKDIR /opt/stackedit
|
||||
|
||||
COPY package.json /opt/stackedit/
|
||||
COPY yarn.lock /opt/stackedit/
|
||||
COPY package-lock.lock /opt/stackedit/
|
||||
COPY gulpfile.js /opt/stackedit/
|
||||
RUN npm install \
|
||||
&& npm cache clean --force \
|
||||
&& npm run build
|
||||
&& npm cache clean --force
|
||||
COPY . /opt/stackedit
|
||||
ENV NODE_ENV production
|
||||
RUN yarn run build
|
||||
RUN npm run build
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user