-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (24 loc) · 805 Bytes
/
Dockerfile
File metadata and controls
26 lines (24 loc) · 805 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
# Stage 1: Build the frontend
FROM node:22-alpine AS frontend
WORKDIR /app/client
COPY client/package*.json ./
RUN npm ci
COPY client/ .
RUN npm run build
# Stage 2: Build the backend
FROM node:22-alpine AS backend
WORKDIR /app/server
COPY server/package*.json ./
RUN npm ci --only=production
COPY server/ .
# Stage 3: Final image
FROM node:22-alpine
WORKDIR /app
COPY --from=backend /app/server .
COPY --from=frontend /app/client/dist ./static
RUN apk add --no-cache bash curl
LABEL org.opencontainers.image.source=https://github.com/syndrizzle/synapse
LABEL org.opencontainers.image.description="Generate accurate multiple-choice questions from any PDF with Synapse. Enhance comprehension and accelerate your learning 🪄"
LABEL org.opencontainers.image.licenses=MIT
EXPOSE 3000
CMD ["npm", "start"]