Spaces:
Configuration error
Configuration error
Commit
·
c4caf5c
1
Parent(s):
8878c4c
Update Dockerfile
Browse files- Dockerfile +3 -4
Dockerfile
CHANGED
|
@@ -5,10 +5,6 @@ WORKDIR /app
|
|
| 5 |
COPY ./requirements.txt /app/requirements.txt
|
| 6 |
COPY ./packages.txt /app/packages.txt
|
| 7 |
|
| 8 |
-
RUN apt-get update && xargs -r -a /app/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
|
| 9 |
-
RUN pip install -r /app/requirements.txt
|
| 10 |
-
RUN pip install streamlit
|
| 11 |
-
|
| 12 |
# Set up a new user named "user" with user ID 1000
|
| 13 |
RUN useradd -m -u 1000 user
|
| 14 |
|
|
@@ -25,5 +21,8 @@ WORKDIR $HOME/app
|
|
| 25 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 26 |
COPY --chown=user . $HOME/app
|
| 27 |
|
|
|
|
|
|
|
|
|
|
| 28 |
EXPOSE 8501
|
| 29 |
CMD streamlit run app.py --server.maxUploadSize 1024
|
|
|
|
| 5 |
COPY ./requirements.txt /app/requirements.txt
|
| 6 |
COPY ./packages.txt /app/packages.txt
|
| 7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
# Set up a new user named "user" with user ID 1000
|
| 9 |
RUN useradd -m -u 1000 user
|
| 10 |
|
|
|
|
| 21 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 22 |
COPY --chown=user . $HOME/app
|
| 23 |
|
| 24 |
+
RUN pip install -r /app/requirements.txt
|
| 25 |
+
RUN pip install streamlit
|
| 26 |
+
|
| 27 |
EXPOSE 8501
|
| 28 |
CMD streamlit run app.py --server.maxUploadSize 1024
|