From da409a73b3809955b36e5c6626365cb5c68d35dd Mon Sep 17 00:00:00 2001 From: Kahn Yuan Date: Mon, 17 Apr 2023 08:45:48 +0800 Subject: [PATCH] feat: add Dockerfile. --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a2db4f0 --- /dev/null +++ b/Dockerfile @@ -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" ] \ No newline at end of file