Dockerfile error solved

This commit is contained in:
marcos.luna
2025-10-20 10:39:27 +02:00
parent 2c107290b4
commit 70e6dbdef3
+15 -9
View File
@@ -8,18 +8,24 @@ ARG DOCKER_REGISTRY_MIRROR
ARG HTTP_PROXY
ARG HTTPS_PROXY
RUN apt-get -y update && \
apt-get -y upgrade && \
apt-get install --no-install-recommends \
software-properties-common apt-utils zip make build-essential libssl-dev zlib1g-dev libbz2-dev \
xz-utils tk-dev libffi-dev liblzma-dev libsqlite3-dev protobuf-compiler mingw-w64 nasm -y && \
apt-get purge -y && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean
# Evita prompts (tzdata) y builds no reproducibles
ENV DEBIAN_FRONTEND=noninteractive \
PIP_NO_CACHE_DIR=1
# Update + install en el MISMO layer. Sin upgrade, sin purge.
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
apt-utils ca-certificates git zip make build-essential \
libssl-dev zlib1g-dev libbz2-dev xz-utils tk-dev libffi-dev \
liblzma-dev libsqlite3-dev protobuf-compiler mingw-w64 nasm \
&& rm -rf /var/lib/apt/lists/*
# (Opcional) pip reciente / compatibilidad wheels
RUN python -m pip install --upgrade pip setuptools wheel
COPY requirements.txt /
RUN pip3 install -r /requirements.txt
WORKDIR /Mythic/
CMD ["python3", "main.py"]