Stackedit/Dockerfile

18 lines
319 B
Docker
Raw Permalink Normal View History

2022-06-06 22:35:35 +00:00
FROM mafgwo/wkhtmltopdf-nodejs:11.15.0
RUN mkdir -p /opt/stackedit
2018-01-18 19:54:54 +00:00
WORKDIR /opt/stackedit
2018-01-19 23:32:14 +00:00
COPY package*json /opt/stackedit/
2018-01-18 19:54:54 +00:00
COPY gulpfile.js /opt/stackedit/
2022-07-02 05:09:24 +00:00
2022-07-10 03:48:28 +00:00
RUN npm install --unsafe-perm \
2018-01-19 22:56:11 +00:00
&& npm cache clean --force
2018-01-18 19:54:54 +00:00
COPY . /opt/stackedit
ENV NODE_ENV production
2018-01-19 22:56:11 +00:00
RUN npm run build
EXPOSE 8080
CMD [ "node", "." ]