FROM golang:1.21.12-alpine3.19 LABEL creator="qywok" ENV APP_DIR=/tebakaja_proxy \ GO111MODULE=on \ CGO_ENABLED=0 \ DOTENV=.env \ HOST=0.0.0.0 \ PORT=7860 WORKDIR ${APP_DIR} COPY go.mod go.sum ./ RUN go mod download COPY . . RUN go build -o main . && \ go clean -modcache && \ rm -rf /var/cache/apk/* \ /root/.cache/go-build /root/go/pkg RUN cat > ${DOTENV} <