18 lines
519 B
Text
18 lines
519 B
Text
|
# 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"]
|