Add Dockerfile

This commit is contained in:
2022-11-23 21:44:28 +01:00
parent 28a1a85531
commit ce66efe4a8
3 changed files with 19 additions and 2 deletions
+14
View File
@@ -0,0 +1,14 @@
FROM node:18
WORKDIR /app
RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm
COPY ./pnpm-lock.yaml ./
RUN pnpm fetch
COPY ./ ./
RUN pnpm install -r --offline
RUN pnpm run build
EXPOSE 3000
CMD ["node", "dist/server/server.js"]