asterioskryos commited on
Commit
32b8d0d
·
verified ·
1 Parent(s): aa24466

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:22-slim AS frontend
2
+ WORKDIR /app
3
+ COPY package.json package-lock.json ./
4
+ RUN npm ci
5
+ COPY . .
6
+ RUN npm run build
7
+
8
+ FROM python:3.12-slim
9
+ WORKDIR /app
10
+
11
+ COPY --from=frontend /app/dist /app/dist
12
+ COPY server/ /app/server/
13
+ COPY docker-entrypoint.sh /
14
+ RUN chmod +x /docker-entrypoint.sh
15
+
16
+ RUN pip install --no-cache-dir -r /app/server/requirements.txt
17
+
18
+ EXPOSE 7860
19
+ ENTRYPOINT ["/docker-entrypoint.sh"]