GPTcord/Dockerfile
2023-09-18 11:26:37 +02:00

18 lines
260 B
Docker

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"]