File size: 401 Bytes
32b8d0d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM node:22-slim AS frontend
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run build

FROM python:3.12-slim
WORKDIR /app

COPY --from=frontend /app/dist /app/dist
COPY server/ /app/server/
COPY docker-entrypoint.sh /
RUN chmod +x /docker-entrypoint.sh

RUN pip install --no-cache-dir -r /app/server/requirements.txt

EXPOSE 7860
ENTRYPOINT ["/docker-entrypoint.sh"]