GPTcord/Dockerfile

20 lines
287 B
Text
Raw Normal View History

2023-09-18 11:26:37 +02:00
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
COPY scripts ./scripts
2023-09-18 11:26:37 +02:00
RUN npx tsc
# Run the app
CMD ["node", "dist/src/index.js"]