Add Dockerfile
This commit is contained in:
parent
58a054d137
commit
1ae09945c0
1 changed files with 18 additions and 0 deletions
18
Dockerfile
Normal file
18
Dockerfile
Normal file
|
@ -0,0 +1,18 @@
|
|||
FROM node:18
|
||||
WORKDIR /app
|
||||
|
||||
# Packages
|
||||
COPY package*.json ./
|
||||
RUN npm install -D
|
||||
|
||||
# Database schema
|
||||
COPY schema.prisma .
|
||||
RUN npx prisma generate
|
||||
|
||||
# Typescript compiling
|
||||
COPY tsconfig.json .
|
||||
COPY src ./src
|
||||
RUN npx tsc
|
||||
|
||||
# Run the app
|
||||
CMD ["node", "dist/index.js"]
|
Loading…
Reference in a new issue