Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +7 -0
Dockerfile
CHANGED
|
@@ -8,6 +8,13 @@ COPY . /create_ai_ad
|
|
| 8 |
|
| 9 |
# Install any needed packages specified in requirements.txt
|
| 10 |
RUN pip install --trusted-host pypi.python.org -r requirements.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
# Make port 80 available to the world outside this container
|
| 13 |
EXPOSE 80
|
|
|
|
| 8 |
|
| 9 |
# Install any needed packages specified in requirements.txt
|
| 10 |
RUN pip install --trusted-host pypi.python.org -r requirements.txt
|
| 11 |
+
# To get permission to the user
|
| 12 |
+
Run useradd -m -u 1000 user
|
| 13 |
+
|
| 14 |
+
USER user
|
| 15 |
+
|
| 16 |
+
ENV HOME=/home/user \
|
| 17 |
+
PATH=/home/user/.local/bin:$PATH
|
| 18 |
|
| 19 |
# Make port 80 available to the world outside this container
|
| 20 |
EXPOSE 80
|