Add Dockerfile

This commit is contained in:
eli 2024-10-15 12:15:24 +08:00
commit 59ac64e20e
1 changed files with 13 additions and 0 deletions

13
Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM alpine:latest
RUN apk update && apk add --no-cache ca-certificates tzdata
ENV FRP_VERSION=0.60.0
ENV MACHINE=linux_amd64
RUN wget https://github.com/fatedier/frp/releases/download/v${FRP_VERSION}/frp_${FRP_VERSION}_${MACHINE}.tar.gz
RUN tar zxvf frp_${FRP_VERSION}_${MACHINE}.tar.gz
RUN mv frp_${FRP_VERSION}_${MACHINE} /frps
RUN rm frp_${FRP_VERSION}_${MACHINE}.tar.gz
ENV TZ=Asia/Shanghai
RUN mkdir /conf
VOLUME /conf
WORKDIR /frps
ENTRYPOINT ["./frps","-c","/conf/frps.ini"]