Commit
·
b9806d2
1
Parent(s):
f4a9639
change user in dockerfile to match hf permissions
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
# Use an official Python runtime as a parent image
|
| 2 |
FROM python:3.11-slim-bullseye
|
| 3 |
|
| 4 |
-
|
| 5 |
|
| 6 |
# Set the working directory in the container to /app
|
| 7 |
WORKDIR /app
|
|
@@ -20,4 +20,4 @@ EXPOSE 7860
|
|
| 20 |
# Run main.py when the container launches
|
| 21 |
CMD ["python", "main.py"]
|
| 22 |
|
| 23 |
-
USER
|
|
|
|
| 1 |
# Use an official Python runtime as a parent image
|
| 2 |
FROM python:3.11-slim-bullseye
|
| 3 |
|
| 4 |
+
RUN useradd -m -u 1000 user
|
| 5 |
|
| 6 |
# Set the working directory in the container to /app
|
| 7 |
WORKDIR /app
|
|
|
|
| 20 |
# Run main.py when the container launches
|
| 21 |
CMD ["python", "main.py"]
|
| 22 |
|
| 23 |
+
USER 1000
|