Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +0 -7
Dockerfile
CHANGED
|
@@ -26,31 +26,24 @@
|
|
| 26 |
|
| 27 |
|
| 28 |
FROM python:3.9-slim
|
| 29 |
-
|
| 30 |
RUN useradd -m -u 1000 user
|
| 31 |
USER user
|
| 32 |
ENV HOME=/home/user \
|
| 33 |
PATH=/home/user/.local/bin:$PATH
|
| 34 |
WORKDIR $HOME/app
|
| 35 |
COPY --chown=user . $HOME/app
|
| 36 |
-
|
| 37 |
# Run apt-get update and install as root
|
| 38 |
USER root
|
| 39 |
RUN apt-get update && apt-get install -y \
|
| 40 |
build-essential \
|
| 41 |
curl \
|
| 42 |
-
software-properties-common \
|
| 43 |
git \
|
| 44 |
&& rm -rf /var/lib/apt/lists/*
|
| 45 |
USER user
|
| 46 |
-
|
| 47 |
# COPY requirements.txt ./
|
| 48 |
# COPY src/ ./src/
|
| 49 |
COPY . .
|
| 50 |
-
|
| 51 |
RUN pip3 install -r requirements.txt
|
| 52 |
-
|
| 53 |
EXPOSE 8501
|
| 54 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
| 55 |
-
|
| 56 |
ENTRYPOINT ["streamlit", "run", "data_analysis_agent.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]
|
|
|
|
| 26 |
|
| 27 |
|
| 28 |
FROM python:3.9-slim
|
|
|
|
| 29 |
RUN useradd -m -u 1000 user
|
| 30 |
USER user
|
| 31 |
ENV HOME=/home/user \
|
| 32 |
PATH=/home/user/.local/bin:$PATH
|
| 33 |
WORKDIR $HOME/app
|
| 34 |
COPY --chown=user . $HOME/app
|
|
|
|
| 35 |
# Run apt-get update and install as root
|
| 36 |
USER root
|
| 37 |
RUN apt-get update && apt-get install -y \
|
| 38 |
build-essential \
|
| 39 |
curl \
|
|
|
|
| 40 |
git \
|
| 41 |
&& rm -rf /var/lib/apt/lists/*
|
| 42 |
USER user
|
|
|
|
| 43 |
# COPY requirements.txt ./
|
| 44 |
# COPY src/ ./src/
|
| 45 |
COPY . .
|
|
|
|
| 46 |
RUN pip3 install -r requirements.txt
|
|
|
|
| 47 |
EXPOSE 8501
|
| 48 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
|
|
|
| 49 |
ENTRYPOINT ["streamlit", "run", "data_analysis_agent.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]
|