-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (17 loc) · 717 Bytes
/
Copy pathDockerfile
File metadata and controls
22 lines (17 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Build from the REPO ROOT (the server imports shared scoring from ../src):
# docker build -f server/Dockerfile -t grindeasy-server .
# docker run -p 8787:8787 -v grindeasy-data:/data \
# -e DB_PATH=/data/grindeasy.db -e BASE_URL=https://your.domain \
# -e DISCORD_CLIENT_ID=... -e DISCORD_CLIENT_SECRET=... grindeasy-server
FROM node:24-alpine
WORKDIR /app
COPY server/package.json server/package-lock.json ./server/
RUN cd server && npm ci --no-audit --no-fund
COPY src/types.ts src/tiers.ts src/plan.ts ./src/
COPY server/src ./server/src
COPY server/tsconfig.json ./server/
ENV NODE_ENV=production
ENV DB_PATH=/data/grindeasy.db
EXPOSE 8787
WORKDIR /app/server
CMD ["npx", "tsx", "src/index.ts"]