Skip to content

Commit

Permalink
COPY --from=ff /rootfs /rootfs
Browse files Browse the repository at this point in the history
  • Loading branch information
huapox committed Nov 7, 2023
1 parent 375babf commit ffa5fd5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion compile/build-alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,11 @@ RUN mkdir -p $TARGETPATH; \
# RUN /tmp/build-fontconfig.sh


FROM ${BASEIMAGE}
# FROM compile
# FROM ${BASEIMAGE} #导致img嵌套,层次达max;
FROM registry.cn-shenzhen.aliyuncs.com/infrastlabs/x11-base:alpine-compile as ff
FROM alpine:3.15
COPY --from=ff /rootfs /rootfs
RUN export domain="mirrors.ustc.edu.cn"; \
echo "http://$domain/alpine/v3.15/main" > /etc/apk/repositories; \
echo "http://$domain/alpine/v3.15/community" >> /etc/apk/repositories;
Expand Down

0 comments on commit ffa5fd5

Please sign in to comment.