Spaces:
Sleeping
Sleeping
apple muncy
commited on
Commit
·
0278dc2
1
Parent(s):
dacc06f
edit Dockerfile
Browse filesSigned-off-by: apple muncy <apple@dell-deb-12-5.local>
- Dockerfile +4 -3
Dockerfile
CHANGED
|
@@ -2,13 +2,14 @@ FROM python:3.11
|
|
| 2 |
|
| 3 |
RUN useradd -m -u 1000 user
|
| 4 |
USER user
|
| 5 |
-
ENV
|
|
|
|
| 6 |
|
| 7 |
-
WORKDIR /app
|
| 8 |
|
| 9 |
COPY --chown=user ./requirements.txt requirements.txt
|
| 10 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 11 |
|
| 12 |
-
COPY --chown=user . /app
|
| 13 |
|
| 14 |
CMD ['python auth_server.py']
|
|
|
|
| 2 |
|
| 3 |
RUN useradd -m -u 1000 user
|
| 4 |
USER user
|
| 5 |
+
ENV HOME=/home/user \
|
| 6 |
+
PATH="/home/user/.local/bin:$PATH"
|
| 7 |
|
| 8 |
+
WORKDIR $HOME/app
|
| 9 |
|
| 10 |
COPY --chown=user ./requirements.txt requirements.txt
|
| 11 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 12 |
|
| 13 |
+
COPY --chown=user . $HOME/app
|
| 14 |
|
| 15 |
CMD ['python auth_server.py']
|