Add Dockerfile

This commit is contained in:
Wroclaw 2023-09-18 11:26:37 +02:00
parent 58a054d137
commit 1ae09945c0

18
Dockerfile Normal file
View 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"]