forked from galnir/Master-Bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (18 loc) · 739 Bytes
/
Copy pathDockerfile
File metadata and controls
25 lines (18 loc) · 739 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM node:16-slim
WORKDIR "/Master-Bot"
# Install prerequisites and register fonts
RUN apt-get update && apt-get install -y -q openssl && apt-get install -y -q && apt-get install -y -q --no-install-recommends libfontconfig1
# Copy files to Container (Excluding whats in .dockerignore)
COPY ./ ./
# Install for Docker-Compose (Excluding "postinstall")
RUN npm ci --development --ignore-scripts
RUN ["npx", "prisma", "generate", "dev"]
# Install for Standalone Dockerfile use (comment out the 2 lines above and uncomment the line below)
# RUN npm ci --development
# Ports for the Dashboard
EXPOSE 3000
ENV PORT 3000
# Stop Nextjs Data Collection
ENV NEXT_TELEMETRY_DISABLED 1
# Run Concurrent Start Script
CMD ["npm", "run", "dev"]