From 31ff69530415f8150491315fd769e95edef69f10 Mon Sep 17 00:00:00 2001 From: Achilles Kars Date: Wed, 22 Nov 2023 18:56:44 +0800 Subject: [PATCH] Fix package manager misuse in Dockerfile (#194) --- Dockerfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index d4331e9..a6e68b1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,10 +2,7 @@ FROM python:alpine RUN sed -i 's|https://dl-cdn.alpinelinux.org|http://mirrors.tuna.tsinghua.edu.cn|g' /etc/apk/repositories -RUN apt-get update \ - && apt-get install -y gcc musl-dev libffi-dev libssl-dev ca-certificates cron \ - && apt-get clean \ - && rm -rf /var/lib/apt/lists/* +RUN apk add --no-cache gcc musl-dev python3-dev libffi-dev RUN apk add --no-cache --virtual .build-app curl