initial commit: fork

This commit is contained in:
2023-10-27 10:31:20 +02:00
commit a52dbbc103
195 changed files with 17484 additions and 0 deletions

28
Dockerfile Normal file
View File

@@ -0,0 +1,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"]