All checks were successful
Docker Build & Push / build-and-publish (push) Successful in 42s
20 lines
619 B
Docker
20 lines
619 B
Docker
# Start with an official Python runtime as a parent image
|
|
FROM python:3.13-slim
|
|
|
|
# Set the working directory in the container
|
|
WORKDIR /code
|
|
|
|
# Copy the requirements file into the container
|
|
COPY ./requirements.txt /code/requirements.txt
|
|
|
|
# Install any needed packages specified in requirements.txt
|
|
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
|
|
# Copy the application code into the container
|
|
COPY ./app /code/app
|
|
|
|
# Expose port 80 to the outside world
|
|
EXPOSE 80
|
|
|
|
# Command to run the application using uvicorn
|
|
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"] |