Compare commits

...

2 commits

Author SHA1 Message Date
51bd06572a Merge pull request 'Added docker configuration' (#1) from feat/docker into main
Reviewed-on: #1
2023-04-11 11:20:48 +02:00
Théo
1de57afe45 Added docker configuration 2023-04-11 11:17:26 +02:00
2 changed files with 28 additions and 0 deletions

5
.dockerignore Normal file
View file

@ -0,0 +1,5 @@
.git
Dockerfile
node_modules
*.md
.env.*

23
Dockerfile Normal file
View file

@ -0,0 +1,23 @@
FROM node:16-alpine AS builder
RUN apk add --no-cache libc6-compat
WORKDIR /app
COPY package.json .
COPY pnpm-lock.yaml .
RUN npm install -g pnpm && \
pnpm install
COPY . .
RUN npm run build
ENV NODE_ENV=production
EXPOSE 3000
ENV PORT 3000
CMD ["pnpm", "start"]