Commit
·
f3b9ee3
1
Parent(s):
5a560d2
improved readability
Browse files- Dockerfile +3 -4
Dockerfile
CHANGED
@@ -14,8 +14,9 @@ RUN useradd -m -u 1000 user
|
|
14 |
# Switch to the "user" user
|
15 |
USER user
|
16 |
# Set home to the user's home directory
|
17 |
-
ENV HOME=/home/user
|
18 |
-
|
|
|
19 |
|
20 |
# Set the working directory to the user's home directory
|
21 |
WORKDIR $HOME/app
|
@@ -29,6 +30,4 @@ ENV HUGGINGFACE_HUB_CACHE="/app/.cache/huggingface"
|
|
29 |
RUN mkdir "/app/.cache/transformers/"
|
30 |
ENV TRANSFORMERS_CACHE="/app/.cache/transformers"
|
31 |
|
32 |
-
COPY . /app
|
33 |
-
|
34 |
CMD ["streamlit", "run", "/app/app.py"]
|
|
|
14 |
# Switch to the "user" user
|
15 |
USER user
|
16 |
# Set home to the user's home directory
|
17 |
+
ENV HOME=/home/user
|
18 |
+
# Add the user's home directory to the PATH
|
19 |
+
ENV PATH=/home/user/.local/bin:$PATH
|
20 |
|
21 |
# Set the working directory to the user's home directory
|
22 |
WORKDIR $HOME/app
|
|
|
30 |
RUN mkdir "/app/.cache/transformers/"
|
31 |
ENV TRANSFORMERS_CACHE="/app/.cache/transformers"
|
32 |
|
|
|
|
|
33 |
CMD ["streamlit", "run", "/app/app.py"]
|