er/Dockerfile
Louis Hollingworth 2d4504dbe0
More modifications to Dockerfile
Signed-off-by: Louis Hollingworth <louis@hollingworth.ch>
2023-06-18 19:19:38 +01:00

27 lines
549 B
Docker

## build runner
FROM node:lts-alpine as build-runner
# Set temp directory
WORKDIR /app
# Move package.json
COPY package.json .
# Install dependencies
RUN npm install
# Move source files
COPY src ./src
COPY tsconfig.json .
COPY prisma ./prisma
# Build project
RUN npx prisma generate
# Start bot
CMD [ "npm", "run", "dev" ]
LABEL org.opencontainers.image.source=https://git.ludoviko.ch/lucxjo/er
LABEL org.opencontainers.image.description="A Discord bot for the Young Royals guild"
LABEL org.opencontainers.image.licenses="GPL-3.0-or-later"