Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +11 -0
Dockerfile
CHANGED
@@ -5,3 +5,14 @@ WORKDIR /app
|
|
5 |
COPY . /app
|
6 |
|
7 |
RUN pip install -r requirements.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
COPY . /app
|
6 |
|
7 |
RUN pip install -r requirements.txt
|
8 |
+
|
9 |
+
RUN useradd -m -u 1000 user
|
10 |
+
|
11 |
+
USER user
|
12 |
+
|
13 |
+
# Copy the rest of the application code into the container at /app
|
14 |
+
COPY --chown=user . /app/
|
15 |
+
|
16 |
+
|
17 |
+
# Command to run your application
|
18 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|