文档说明:只记录关键地方;
试验环境: linux debian 11
目标socat 支持TLSv1.3
dockerfile
FROM alpine:latest
RUN test -f /etc/apk/repositories.save || cp /etc/apk/repositories /etc/apk/repositories.save
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
RUN apk update
RUN apk add ca-certificates curl openssl openssl-dev
RUN apk add socat privoxy proxychains-ng tini
ENTRYPOINT ["tini", "--"]
构建 build.sh
#!/bin/bash
set -eux
day=$(date -u +"%Y%m%dT%H%MZ")
# day=$(date "+%Y%m%d%H")
export DOCKER_BUILDKIT=1
image="registry.cn-beijing.aliyuncs.com/jingjingxyk-public/app:socat-alpine-$day"
docker build -t $image -f Dockerfile .
docker push $image