Initial commit

This commit is contained in:
2023-10-22 23:46:41 +02:00
commit 9691fb7037
10 changed files with 360 additions and 0 deletions

14
Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
FROM golang:alpine as build
RUN apk add --no-cache git
WORKDIR /app
COPY go.sum /app/go.sum
COPY go.mod /app/go.mod
ENV GOPRIVATE="git.t-juice.club"
RUN go mod download
COPY . /app
RUN go build -o mf-proxy cmd/main.go
FROM golang:alpine
COPY --from=build /app/mf-proxy /usr/bin/mf-proxy
WORKDIR /app
CMD ["/usr/bin/mf-proxy"]