Files
it_school/project2/Dockerfile
Ionel Andrei Cataon 0528f7c837 updat21
2026-02-12 15:34:02 +02:00

13 lines
244 B
Docker

FROM python:3.9-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY quotes.py .
# Defines o varianta de baza
ENV QUOTE_API_URL="https://api.quotable.io/random"
CMD ["python", "famousquotes.py"]