rajeshchoudharyt
commited on
Commit
•
66d9efc
1
Parent(s):
35a4b00
update dockerfile
Browse files- Dockerfile +2 -6
Dockerfile
CHANGED
@@ -1,14 +1,10 @@
|
|
1 |
FROM python:3.10.13
|
2 |
|
3 |
-
WORKDIR /
|
4 |
|
5 |
-
|
6 |
-
|
7 |
-
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
8 |
|
9 |
RUN useradd -m -u 1000 user
|
10 |
USER user
|
11 |
|
12 |
-
COPY --chown=user ./app /code/app
|
13 |
-
|
14 |
CMD ["fastapi", "run", "app/main.py", "--port", "80"]
|
|
|
1 |
FROM python:3.10.13
|
2 |
|
3 |
+
WORKDIR /
|
4 |
|
5 |
+
RUN pip install -r requirements.txt
|
|
|
|
|
6 |
|
7 |
RUN useradd -m -u 1000 user
|
8 |
USER user
|
9 |
|
|
|
|
|
10 |
CMD ["fastapi", "run", "app/main.py", "--port", "80"]
|