mirror of
https://github.com/openp2p-cn/openp2p.git
synced 2026-02-04 02:43:17 +08:00
15 lines
504 B
Docker
Executable File
15 lines
504 B
Docker
Executable File
FROM alpine:3.18.2
|
|
|
|
# Replace the default Alpine repositories with Aliyun mirrors
|
|
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && \
|
|
apk add --no-cache ca-certificates iptables && \
|
|
rm -rf /tmp/* /var/tmp/* /var/cache/apk/* /var/cache/distfiles/*
|
|
|
|
COPY get-client.sh /
|
|
ARG VERSION
|
|
LABEL version=${VERSION}
|
|
# ARG DOCKER_VER="latest"
|
|
RUN echo $TARGETPLATFORM && chmod +x /get-client.sh && ./get-client.sh
|
|
|
|
ENTRYPOINT ["/usr/local/openp2p/openp2p"]
|