Skip to content

Commit

Permalink
Dockerize
Browse files Browse the repository at this point in the history
  • Loading branch information
Larsundso committed Sep 6, 2024
1 parent 167671a commit f8a82b7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
18 changes: 16 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
FROM node:22
WORKDIR /app
RUN corepack enable
RUN apt-get update && apt-get install -y \
build-essential \
libcairo2-dev \
libpango1.0-dev \
libjpeg-dev \
libgif-dev \
librsvg2-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ENV PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig
COPY . .
WORKDIR /app/packages/Bot
RUN pnpm install
RUN pnpx prisma generate

WORKDIR /app/apps/Website
RUN pnpm link ../../packages/Server

WORKDIR /app/packages/Bot
RUN pnpm link ../Server
RUN pnpm build
COPY ./packages/Bot/.env /app/packages/Bot/.env.template
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"lint": "npx eslint 'src/**/*.ts' --fix",
"register": "node ./dist/register-commands.js",
"run": "node --max-old-space-size=10240 --no-deprecation --no-warnings --experimental-json-modules ./dist/index.js",
"prestart": "rm -rf dist && pnpm build && pnpx prisma db push",
"start": "pnpm run run",
"watch": "swc src -d dist --strip-leading-paths --copy-files --watch"
},
Expand Down

0 comments on commit f8a82b7

Please sign in to comment.