mirror of
https://gitee.com/mafgwo/stackedit
synced 2024-11-16 03:32:40 +08:00
17 lines
295 B
Docker
17 lines
295 B
Docker
|
FROM benweet/stackedit-base
|
||
|
|
||
|
RUN mkdir -p /usr/src/app
|
||
|
WORKDIR /usr/src/app
|
||
|
|
||
|
COPY package.json /usr/src/app/
|
||
|
COPY yarn.lock /usr/src/app/
|
||
|
COPY gulpfile.js /usr/src/app/
|
||
|
RUN yarn && yarn cache clean
|
||
|
COPY . /usr/src/app
|
||
|
ENV NODE_ENV production
|
||
|
RUN yarn run build
|
||
|
|
||
|
EXPOSE 8080
|
||
|
|
||
|
CMD [ "node", "." ]
|