GPTcord/Dockerfile
Wroclaw 6a31473d22 scripts: move scripts to the project root directory
I believe, that these kind of scripts should reside there
instead of src directory
2023-09-30 14:46:12 +02:00

19 lines
287 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
COPY scripts ./scripts
RUN npx tsc
# Run the app
CMD ["node", "dist/src/index.js"]