Spaces:
Sleeping
Sleeping
Delete Dockerfile
Browse files- Dockerfile +0 -24
Dockerfile
DELETED
|
@@ -1,24 +0,0 @@
|
|
| 1 |
-
# (nra_upd_02)
|
| 2 |
-
# Use a minimal base image with Python 3.9 installed
|
| 3 |
-
FROM python:3.9
|
| 4 |
-
|
| 5 |
-
# Set the working directory inside the container to /app
|
| 6 |
-
WORKDIR /app
|
| 7 |
-
|
| 8 |
-
# Copy all files from the current directory on the host to the container's /app directory
|
| 9 |
-
COPY . .
|
| 10 |
-
|
| 11 |
-
# Install Python dependencies listed in requirements.txt
|
| 12 |
-
RUN pip3 install -r requirements.txt
|
| 13 |
-
|
| 14 |
-
RUN useradd -m -u 1000 user
|
| 15 |
-
USER user
|
| 16 |
-
ENV HOME=/home/user \
|
| 17 |
-
PATH=/home/user/.local/bin:$PATH
|
| 18 |
-
|
| 19 |
-
WORKDIR $HOME/app
|
| 20 |
-
|
| 21 |
-
COPY --chown=user . $HOME/app
|
| 22 |
-
|
| 23 |
-
# Define the command to run the Streamlit app on port "8501" and make it accessible externally
|
| 24 |
-
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|