p2
This commit is contained in:
@@ -2,12 +2,11 @@ FROM python:3.9-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
RUN pip install --no-cache-dir requests
|
||||
|
||||
COPY famousquotes.py .
|
||||
|
||||
# Defines o varianta de baza
|
||||
ENV QUOTE_API_URL="https://api.quotable.io/random"
|
||||
RUN touch quote.txt && chmod 666 quote.txt
|
||||
|
||||
# Comanda de rulare
|
||||
CMD ["python", "famousquotes.py"]
|
||||
Reference in New Issue
Block a user