fix: default max body size 1Gi
This commit is contained in:
28
Dockerfile
Normal file
28
Dockerfile
Normal file
@ -0,0 +1,28 @@
|
||||
FROM repo.me/my/golang:latest AS builder
|
||||
|
||||
ENV GO111MODULE on
|
||||
ENV CGO_ENABLED 0
|
||||
ENV GOOS linux
|
||||
ENV GOPROXY https://goproxy.io
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN go mod download
|
||||
RUN go build -ldflags '-s -w' -o repo_app .
|
||||
|
||||
FROM repository.umisen.com/external/alpine:latest
|
||||
|
||||
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories && apk add curl
|
||||
|
||||
ENV TZ Asia/Shanghai
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN mkdir -p /data
|
||||
|
||||
COPY --from=builder /build/repo_app /app/repo_app
|
||||
COPY etc /app/etc
|
||||
|
||||
CMD ["/app/repo_app", "-crt", "/app/etc/repo.me.crt", "-key", "/app/etc/repo.me.key", "-data", "/data"]
|
Reference in New Issue
Block a user