Spaces:
Runtime error
Runtime error
harsh-manvar
commited on
Commit
β’
c9dc6b1
1
Parent(s):
2240be9
Rename Dockerfile-test to Dockerfile
Browse files
Dockerfile-test β Dockerfile
RENAMED
@@ -1,11 +1,8 @@
|
|
1 |
FROM python:3.9
|
|
|
2 |
WORKDIR /code
|
3 |
COPY ./requirements.txt /code/requirements.txt
|
|
|
4 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
5 |
-
RUN useradd -m -u 1000 user
|
6 |
USER user
|
7 |
-
|
8 |
-
PATH=/home/user/.local/bin:$PATH
|
9 |
-
WORKDIR $HOME/app
|
10 |
-
COPY --chown=user . $HOME/app
|
11 |
-
CMD ["python", "app.py"]
|
|
|
1 |
FROM python:3.9
|
2 |
+
RUN useradd -m -u 1000 user
|
3 |
WORKDIR /code
|
4 |
COPY ./requirements.txt /code/requirements.txt
|
5 |
+
RUN pip install --upgrade pip
|
6 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
|
7 |
USER user
|
8 |
+
COPY --link --chown=1000 ./ /code
|
|
|
|
|
|
|
|