mirror of
https://gitee.com/mafgwo/stackedit
synced 2024-11-16 03:32:40 +08:00
17 lines
291 B
Docker
17 lines
291 B
Docker
FROM mafgwo/wkhtmltopdf-nodejs:11.15.0
|
|
|
|
WORKDIR /opt/stackedit
|
|
|
|
COPY package*json /opt/stackedit/
|
|
COPY gulpfile.js /opt/stackedit/
|
|
|
|
RUN npm install --unsafe-perm \
|
|
&& npm cache clean --force
|
|
COPY . /opt/stackedit
|
|
ENV NODE_ENV production
|
|
RUN npm run build
|
|
|
|
EXPOSE 8080
|
|
|
|
CMD [ "node", "." ]
|