AuthenticationApp / Dockerfile
amaye15's picture
debug
dd00186
raw
history blame
503 Bytes
# Use an official Python runtime as a parent image
FROM python:3.12-slim
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY ./app /code/app
# Copy static files and templates
COPY ./static /code/static
COPY ./templates /code/templates
EXPOSE 7860
# Command to run the FastAPI application
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]