Skip to content

Commit

Permalink
flux/dockerfile: ap curl
Browse files Browse the repository at this point in the history
  • Loading branch information
sam#gemmi-win10 committed Nov 21, 2023
1 parent 933b0cd commit cfbd21b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions flux/src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ FROM ubuntu:20.04 as files1
RUN rm -rf /rootfs/usr/local/xrdp /rootfs/usr/local/tigervnc
#
# files1: 三方文件, files2: src编译
ARG TARGETPLATFORM
RUN export DOMAIN="mirrors.ustc.edu.cn"; \
test -z "$(echo $TARGETPLATFORM |grep arm)" && target=ubuntu || target=ubuntu-ports; \
echo "deb http://${DOMAIN}/$target focal main restricted universe multiverse" > /etc/apt/sources.list \
&& echo "deb http://${DOMAIN}/$target focal-updates main restricted universe multiverse">> /etc/apt/sources.list; \
apt update && apt -y install curl
RUN \
# test -z "$(echo $TARGETPLATFORM |grep arm)" && arch=amd64 || arch=arm64; \
case ${TARGETPLATFORM} in \
Expand Down

0 comments on commit cfbd21b

Please sign in to comment.