AdamNovotnyCom
commited on
Commit
•
f971da9
1
Parent(s):
0b04b0f
update Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
@@ -4,7 +4,7 @@ FROM python:3.10
|
|
4 |
# ADD . /mnt/app
|
5 |
# WORKDIR /mnt/app
|
6 |
|
7 |
-
RUN pip install -r requirements.txt
|
8 |
|
9 |
# Set up a new user named "user" with user ID 1000
|
10 |
RUN useradd -m -u 1000 user
|
@@ -22,6 +22,8 @@ WORKDIR $HOME/app
|
|
22 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
23 |
COPY --chown=user . $HOME/app
|
24 |
|
|
|
|
|
25 |
EXPOSE 7860
|
26 |
|
27 |
CMD ["python", "app.py"]
|
|
|
4 |
# ADD . /mnt/app
|
5 |
# WORKDIR /mnt/app
|
6 |
|
7 |
+
# RUN pip install -r requirements.txt
|
8 |
|
9 |
# Set up a new user named "user" with user ID 1000
|
10 |
RUN useradd -m -u 1000 user
|
|
|
22 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
23 |
COPY --chown=user . $HOME/app
|
24 |
|
25 |
+
RUN pip install -r requirements.txt
|
26 |
+
|
27 |
EXPOSE 7860
|
28 |
|
29 |
CMD ["python", "app.py"]
|