Skip to content

Commit

Permalink
feat: add Dockerfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyyuan committed Apr 17, 2023
1 parent 0093094 commit da409a7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:16

RUN apt-get update \
&& apt-get install -qq build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev

WORKDIR /app/
COPY . .
RUN npm config set strict-ssl false \
&& npm install \
&& npm run build

EXPOSE 80
CMD [ "npm", "start" ]

0 comments on commit da409a7

Please sign in to comment.