Files
twimg-backend/Dockerfile
Logan Cusano 5e885dab54
All checks were successful
Docker Build & Push / build-and-publish (push) Successful in 42s
Remove env from the dockerfile and add it to the makefile
2025-11-19 03:25:39 -05:00

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"]