forked from galnir/Master-Bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (23 loc) · 980 Bytes
/
Dockerfile
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
26
27
28
FROM --platform=linux/amd64 node:18-slim
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
ENV NEXT_TELEMETRY_DISABLED 1
WORKDIR "/Master-Bot"
# Ports for the Dashboard
EXPOSE 3000
ENV PORT 3000
# Install prerequisites and register fonts
RUN apt-get update && apt-get upgrade -y -q && \
apt-get install -y -q openssl && \
apt-get install -y -q --no-install-recommends libfontconfig1 && \
npm install -g pnpm
# Copy files to Container (Excluding whats in .dockerignore)
COPY ./ ./
RUN pnpm install --ignore-scripts && pnpm -F * build
# If you are running Master-Bot in a Standalone Container and need to connect to a service on localhost uncomment the following ENV for each service running on the containers host
# ENV POSTGRES_HOST="host.docker.internal"
# ENV REDIS_HOST="host.docker.internal"
# ENV LAVA_HOST="host.docker.internal"
# Uncomment the following for Standalone Master-Bot Docker Container Build
# RUN pnpm db:push
# CMD ["pnpm", "-r", "start"]