Older/Dockerfiles/wwooww_frpc.dockerfile
luocai 949f84718b
Some checks failed
Deploy / PullDocker (push) Successful in 3s
Deploy / Build (push) Successful in 4m43s
Deploy Docker Images / Docusaurus build and Server deploy (push) Failing after 3m6s
add dockerfiles.
2024-11-01 10:03:07 +08:00

31 lines
1.2 KiB
Docker

FROM amd64/alpine:3.18
LABEL maintainer="amass <168062547@qq.com>"
ENV FRP_VERSION 0.49.0
RUN apk add openssl curl ca-certificates \
&& wget 'http://openresty.org/package/admin@openresty.com-5ea678a6.rsa.pub' \
&& mv 'admin@openresty.com-5ea678a6.rsa.pub' /etc/apk/keys/ \
&& . /etc/os-release \
&& MAJOR_VER=`echo $VERSION_ID | sed 's/\.[0-9]\+$//'` \
&& echo "http://openresty.org/package/alpine/v$MAJOR_VER/main" | tee -a /etc/apk/repositories \
&& apk update \
&& apk add openresty openresty-resty openresty-opm \
&& opm get bungle/lua-resty-session
RUN cd /root \
&& wget --no-check-certificate -c https://github.com/fatedier/frp/releases/download/v${FRP_VERSION}/frp_${FRP_VERSION}_linux_amd64.tar.gz \
&& tar zxvf frp_${FRP_VERSION}_linux_amd64.tar.gz \
&& cd frp_${FRP_VERSION}_linux_amd64/ \
&& cp frpc /usr/bin/ \
&& mkdir -p /etc/frp \
&& cp frpc.ini /etc/frp \
&& cd /root \
&& rm frp_${FRP_VERSION}_linux_amd64.tar.gz \
&& rm -rf frp_${FRP_VERSION}_linux_amd64/
ENTRYPOINT if [ -d /app ]; then cd /app && openresty -p /app; fi; /usr/bin/frpc -c /etc/frp/frpc.ini
# docker build --progress=tty -f wwooww_frpc.dockerfile -t registry.cn-shenzhen.aliyuncs.com/amass_toolset/frpc:0.49.0 .