首页 > 其他分享 >构建能让socat支持TLSv.13的容器环境

构建能让socat支持TLSv.13的容器环境

时间:2022-10-25 21:00:55浏览次数:85  
标签:容器 RUN etc TLSv.13 repositories apk socat day

文档说明:只记录关键地方;
试验环境: 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


参考文档

  1. Dockerfile
  2. Compose file
  3. Tini作为Docker容器的init进程,tini 解决僵尸进程
  4. socat

标签:容器,RUN,etc,TLSv.13,repositories,apk,socat,day
From: https://www.cnblogs.com/jingjingxyk/p/16826296.html

相关文章