stackedit/Dockerfile

19 lines
426 B
Docker
Raw Normal View History

2022-06-07 06:35:35 +08:00
FROM mafgwo/wkhtmltopdf-nodejs:11.15.0
RUN mkdir -p /opt/stackedit
2018-01-19 03:54:54 +08:00
WORKDIR /opt/stackedit
2018-01-20 07:32:14 +08:00
COPY package*json /opt/stackedit/
2018-01-19 03:54:54 +08:00
COPY gulpfile.js /opt/stackedit/
2022-07-02 13:09:24 +08:00
ENV NODE_TLS_REJECT_UNAUTHORIZED=0
RUN git config --global http.sslVerify false && npm set strict-ssl false && npm install --unsafe-perm \
2018-01-20 06:56:11 +08:00
&& npm cache clean --force
2018-01-19 03:54:54 +08:00
COPY . /opt/stackedit
ENV NODE_ENV production
2018-01-20 06:56:11 +08:00
RUN npm run build
EXPOSE 8080
CMD [ "node", "." ]