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