er/Dockerfile

27 lines
549 B
Docker
Raw Normal View History

## 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"