2023-05-02 18:59:36 +00:00
|
|
|
## build runner
|
|
|
|
FROM node:lts-alpine as build-runner
|
|
|
|
|
|
|
|
# Set temp directory
|
2023-06-18 18:19:38 +00:00
|
|
|
WORKDIR /app
|
2023-05-02 18:59:36 +00:00
|
|
|
|
|
|
|
# Move package.json
|
|
|
|
COPY package.json .
|
|
|
|
|
|
|
|
# Install dependencies
|
|
|
|
RUN npm install
|
|
|
|
|
|
|
|
# Move source files
|
|
|
|
COPY src ./src
|
|
|
|
COPY tsconfig.json .
|
2023-06-18 18:19:38 +00:00
|
|
|
COPY prisma ./prisma
|
2023-05-02 18:59:36 +00:00
|
|
|
|
|
|
|
# Build project
|
2023-06-18 17:54:23 +00:00
|
|
|
RUN npx prisma generate
|
2023-05-02 18:59:36 +00:00
|
|
|
|
|
|
|
# Start bot
|
2023-06-18 18:19:38 +00:00
|
|
|
CMD [ "npm", "run", "dev" ]
|
2023-06-18 13:46:21 +00:00
|
|
|
|
|
|
|
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"
|