2023-06-18 16:10:02 +00:00
|
|
|
# Use the official Python image as the base image
|
|
|
|
FROM python:3.11-slim-buster
|
|
|
|
|
|
|
|
# Set the working directory in the container
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
# Copy the requirements.txt file to the working directory
|
|
|
|
COPY requirements.txt .
|
|
|
|
|
|
|
|
# Install the required packages
|
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
|
# Copy the app files to the working directory
|
2023-06-18 17:38:05 +00:00
|
|
|
COPY images/* ./images/
|
|
|
|
COPY logos/* ./logos/
|
2023-06-18 17:58:59 +00:00
|
|
|
COPY donnees/* ./donnees/
|
2023-06-18 17:38:05 +00:00
|
|
|
COPY app.py ./
|
2023-06-18 16:10:02 +00:00
|
|
|
|
|
|
|
# Expose the port that the app will run on
|
|
|
|
EXPOSE 8501
|
|
|
|
|
|
|
|
# Set the command to run the app when the container starts
|
|
|
|
CMD ["streamlit", "run", "app.py", "--server.port", "8501"]
|