23 lines
474 B
Text
23 lines
474 B
Text
|
|
FROM debian:latest
|
||
|
|
|
||
|
|
RUN apt-get update \
|
||
|
|
&& apt-get install -y --no-install-recommends \
|
||
|
|
python3 \
|
||
|
|
python3-venv \
|
||
|
|
python3-pip \
|
||
|
|
&& rm -rf /var/lib/apt/lists/*
|
||
|
|
|
||
|
|
WORKDIR /app
|
||
|
|
RUN python3 -m venv /opt/venv
|
||
|
|
|
||
|
|
ENV VIRTUAL_ENV=/opt/venv
|
||
|
|
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
|
||
|
|
|
||
|
|
COPY requirements.txt .
|
||
|
|
RUN pip install --upgrade pip \
|
||
|
|
&& pip install --no-cache-dir -r requirements.txt
|
||
|
|
|
||
|
|
COPY . .
|
||
|
|
|
||
|
|
CMD ["echo", "Y para el Rojo, por favor, un minuto de silencio..."]
|