version fonctionnelle minimale 1er fevrier 2023

This commit is contained in:
Francois Pelletier 2023-02-02 00:34:51 -05:00
parent 2751ec8c56
commit 0dea3ce23b
10 changed files with 143 additions and 0 deletions

19
Dockerfile Normal file
View file

@ -0,0 +1,19 @@
FROM python:3.10-slim
# Set the working directory
WORKDIR /app
# Copy the requirements file
COPY requirements.txt .
# Install Python dependencies
RUN pip install -r requirements.txt
# Copy the application code
COPY main.py .
# Expose the application port
EXPOSE 8000
# Run the application
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]