Spaces:
Build error

dhinesh-env commited on
Commit
347e372
·
verified ·
1 Parent(s): 57b22c8

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ ENV PYTHONDONTWRITEBYTECODE=1 \
4
+ PYTHONUNBUFFERED=1 \
5
+ PIP_NO_CACHE_DIR=1
6
+
7
+ WORKDIR /app
8
+
9
+ COPY server/requirements.txt ./server/requirements.txt
10
+ RUN pip install -r ./server/requirements.txt
11
+
12
+ COPY . .
13
+ RUN pip install -e .
14
+
15
+ EXPOSE 8000
16
+ CMD ["python", "-m", "uvicorn", "secure_codegen_env.server.app:app", "--host", "0.0.0.0", "--port", "8000"]
17
+