Для деплоя

This commit is contained in:
Artem VV 2023-05-19 21:15:28 +07:00
parent 3e1cfefdd9
commit a93b621f0a
4 changed files with 25 additions and 0 deletions

3
.gockerignore Normal file
View file

@ -0,0 +1,3 @@
node_modules
.env
dist

16
Dockerfile Normal file
View file

@ -0,0 +1,16 @@
FROM node:16-alpine
EXPOSE 8900
WORKDIR /app
RUN npm i -g pnpm
COPY package.json ./
COPY pnpm-lock.yaml ./
RUN pnpm i
COPY . .
CMD [ "sh", "./start.sh" ]

4
captain-definition Normal file
View file

@ -0,0 +1,4 @@
{
"schemaVersion": 2,
"dockerfilePath": "./Dockerfile"
}

2
start.sh Normal file
View file

@ -0,0 +1,2 @@
echo "Bootstraping database and starting server..."
pnpm prisma db push && pnpm dev