Begin on devops

This commit is contained in:
Errormacr
2023-11-25 18:29:29 +03:00
parent 2c0ff4b058
commit 504ca91b94
3 changed files with 26 additions and 0 deletions

2
backend/.dockerignore Normal file
View File

@@ -0,0 +1,2 @@
node_modules
dockerfile

8
backend/dockerfile Normal file
View File

@@ -0,0 +1,8 @@
FROM node:lts-alpine
WORKDIR /app
RUN corepack enable && corepack prepare pnpm@latest --activate
COPY package.json pnpm-*.yaml ./
RUN pnpm install --frozen-lockfile
COPY . .
EXPOSE 3000
CMD [ "pnpm", "start" ]