Pacicap commited on
Commit
8d0b57b
·
1 Parent(s): 4500b9e

fresh commit docker

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10
2
+
3
+ # Create a non-root user
4
+ RUN useradd -m -u 1000 user
5
+ USER user
6
+ ENV PATH="/home/user/.local/bin:$PATH"
7
+
8
+ # Set the working directory
9
+ WORKDIR /app
10
+
11
+ # Install Python dependencies
12
+ COPY --chown=user ./requirements.txt requirements.txt
13
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
14
+
15
+ # Copy your app code
16
+ COPY --chown=user . /app
17
+
18
+ # Start the FastAPI app
19
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]