Soham Waghmare commited on
Commit
7d12d67
·
1 Parent(s): 2de92fb

feat: Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
2
+ # you will also find guides on how best to write your Dockerfile
3
+
4
+ FROM python:3.12
5
+
6
+ ARG GOOGLE_API_KEY
7
+ ARG ALLOWED_ORIGINS
8
+
9
+ RUN useradd -m -u 1000 user
10
+ USER user
11
+ ENV PATH="/home/user/.local/bin:$PATH"
12
+
13
+ WORKDIR /app
14
+
15
+ RUN pip install uv
16
+ COPY --chown=user . /app
17
+ WORKDIR /app/backend
18
+ RUN uv sync
19
+ RUN uv run playwright install chromium --with-deps
20
+
21
+ CMD ["uv", "run", "app.py"]