Files
hello-cicd/Dockerfile
2026-04-14 10:37:31 +02:00

14 lines
273 B
Docker

FROM python:3.12-slim
WORKDIR /app
# Kopiraj requirements PRIJE koda — cache trick!
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
ENV APP_VERSION=dev
EXPOSE 8000
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]