Commit
•
98bd60e
1
Parent(s):
4367cf8
Update Dockerfile
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
@@ -10,8 +10,14 @@ COPY app/requirements.txt /code/
|
|
10 |
# Install Python dependencies
|
11 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
12 |
|
|
|
|
|
|
|
|
|
|
|
13 |
# Copy the contents of the app directory into the container at /code
|
14 |
COPY app/ /code/
|
|
|
15 |
|
16 |
# Expose the port for Streamlit (assuming Streamlit runs on port 7860)
|
17 |
EXPOSE 7860
|
|
|
10 |
# Install Python dependencies
|
11 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
12 |
|
13 |
+
RUN useradd -m -u 1000 user
|
14 |
+
USER user
|
15 |
+
ENV HOME=/home/user \
|
16 |
+
PATH=/home/user/.local/bin:$PATH
|
17 |
+
|
18 |
# Copy the contents of the app directory into the container at /code
|
19 |
COPY app/ /code/
|
20 |
+
COPY --chown=user . $HOME/code
|
21 |
|
22 |
# Expose the port for Streamlit (assuming Streamlit runs on port 7860)
|
23 |
EXPOSE 7860
|