version initiale
This commit is contained in:
commit
7b2e43c5f7
13 changed files with 278 additions and 0 deletions
18
Dockerfile
Normal file
18
Dockerfile
Normal file
|
@ -0,0 +1,18 @@
|
|||
# Use an official Python runtime as a parent image
|
||||
FROM python:3.9-slim-buster
|
||||
|
||||
# Set the working directory to /app
|
||||
WORKDIR /app
|
||||
|
||||
# Copy the requirements file into the container and install dependencies
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy the rest of the application code into the container
|
||||
COPY main.py .
|
||||
|
||||
# Expose the port that the application will listen on
|
||||
EXPOSE 8088
|
||||
|
||||
# Start the FastAPI application
|
||||
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8088"]
|
Loading…
Add table
Add a link
Reference in a new issue