14 lines
285 B
Plaintext
14 lines
285 B
Plaintext
FROM public.ecr.aws/docker/library/python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
COPY ./requirements.txt /app/requirements.txt
|
|
|
|
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
|
|
|
|
COPY ./api /app/api
|
|
|
|
ENV PORT 80
|
|
|
|
CMD ["sh", "-c", "uvicorn api.app:app --host 0.0.0.0 --port ${PORT}"]
|