Premier déploiement
This commit is contained in:
parent
b63dc3ed12
commit
3425ce3b09
21 changed files with 676 additions and 177 deletions
21
Dockerfile
Normal file
21
Dockerfile
Normal file
|
@ -0,0 +1,21 @@
|
|||
# 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
|
||||
COPY app.py ./
|
||||
COPY donnees/*.json ./donnees/
|
||||
|
||||
# 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"]
|
Loading…
Add table
Add a link
Reference in a new issue