Для деплоя
This commit is contained in:
parent
3e1cfefdd9
commit
a93b621f0a
4 changed files with 25 additions and 0 deletions
3
.gockerignore
Normal file
3
.gockerignore
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
node_modules
|
||||||
|
.env
|
||||||
|
dist
|
||||||
16
Dockerfile
Normal file
16
Dockerfile
Normal 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
4
captain-definition
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"schemaVersion": 2,
|
||||||
|
"dockerfilePath": "./Dockerfile"
|
||||||
|
}
|
||||||
2
start.sh
Normal file
2
start.sh
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
echo "Bootstraping database and starting server..."
|
||||||
|
pnpm prisma db push && pnpm dev
|
||||||
Loading…
Add table
Add a link
Reference in a new issue