generated from lucxjo/template
31 lines
670 B
Docker
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"
|