添加Dockerfile
This commit is contained in:
parent
d21f90672b
commit
d17813c031
16
Dockerfile
Normal file
16
Dockerfile
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
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", "." ]
|
Loading…
x
Reference in New Issue
Block a user