forked from Yooooomi/your_spotify
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.server
More file actions
27 lines (17 loc) · 780 Bytes
/
Dockerfile.server
File metadata and controls
27 lines (17 loc) · 780 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
26
27
FROM node:25-alpine AS builder
WORKDIR /app
ENV MONGO_ENDPOINT=mongodb://mongo:27017/your_spotify
RUN apk add python3 gcc g++ make cmake
RUN npm install -g pnpm nodemon
COPY pnpm-lock.yaml pnpm-lock.yaml
COPY package.json package.json
COPY pnpm-workspace.yaml pnpm-workspace.yaml
COPY apps/dev/package.json apps/dev/package.json
COPY apps/dev/tsconfig.json apps/dev/tsconfig.json
COPY apps/server/package.json apps/server/package.json
COPY apps/server/tsconfig.json apps/server/tsconfig.json
RUN CI=true pnpm install --frozen-lockfile
COPY apps/server/rsbuild.config.ts apps/server/rsbuild.config.ts
COPY apps/server/src apps/server/src
COPY apps/server/scripts apps/server/scripts
ENTRYPOINT [ "sh", "/app/apps/server/scripts/run/run_dev.sh" ]