bloc3_Streamlit / Dockerfile
DavidRambeau's picture
Upload folder using huggingface_hub
05fe8ad verified
Raw History Blame Contribute Delete
650 Bytes
FROM python:3.10-slim
WORKDIR /home/app
RUN apt-get update \
&& apt-get install -y --no-install-recommends nano unzip curl \
&& rm -rf /var/lib/apt/lists/*
COPY . .
RUN curl -fsSL https://get.deta.dev/cli.sh | sh
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
RUN unzip awscliv2.zip
RUN ./aws/install
COPY requirements.txt /dependencies/requirements.txt
RUN pip install -r /dependencies/requirements.txt
# Environment variables will be passed at runtime via docker run -e flags
# No need to set them here in the Dockerfile
# Expose port
EXPOSE 7860
CMD streamlit run app.py --server.port 7860