er/Dockerfile
Louis Hollingworth 0960577152
(#8) Now Reuse compliant and we now display the thread list!
Signed-off-by: Louis Hollingworth <louis@hollingworth.nl>
2023-10-28 16:23:26 +01:00

31 lines
670 B
Docker

# SPDX-FileCopyrightText: 2023 Louis Hollingworth <louis@hollingworth.nl>
#
# SPDX-License-Identifier: GPL-3.0-or-later
## 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"