Fix package manager misuse in Dockerfile (#194)

This commit is contained in:
Achilles Kars 2023-11-22 18:56:44 +08:00 committed by GitHub
parent b77b1b0f95
commit 31ff695304
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 sed -i 's|https://dl-cdn.alpinelinux.org|http://mirrors.tuna.tsinghua.edu.cn|g' /etc/apk/repositories
RUN apt-get update \ RUN apk add --no-cache gcc musl-dev python3-dev libffi-dev
&& 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 --virtual .build-app curl RUN apk add --no-cache --virtual .build-app curl