Delete Dockerfile

This commit is contained in:
Yuzuki 2022-06-06 08:29:24 +08:00 committed by GitHub
parent 5d97809e26
commit dfa1b1b52e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,18 +0,0 @@
# Build go
FROM golang:1.18.1-alpine AS builder
WORKDIR /app
COPY . .
ENV CGO_ENABLED=0
RUN go mod download && \
go env -w GOFLAGS=-buildvcs=false && \
go build -v -o XrayR -trimpath -ldflags "-s -w -buildid=" ./main
# Release
FROM alpine
# 安装必要的工具包
RUN apk --update --no-cache add tzdata ca-certificates && \
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
mkdir /etc/XrayR/
COPY --from=builder /app/XrayR /usr/local/bin
ENTRYPOINT [ "XrayR", "--config", "/etc/XrayR/config.yml"]