mirror of
https://github.com/versity/versitygw.git
synced 2026-08-20 22:26:19 +00:00
19 lines
271 B
Docker
19 lines
271 B
Docker
FROM golang:1.20-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
COPY go.mod ./
|
|
RUN go mod download
|
|
|
|
COPY ./ ./
|
|
|
|
WORKDIR /app/cmd/versitygw
|
|
RUN go build -o versitygw
|
|
|
|
FROM alpine:latest
|
|
|
|
RUN mkdir /tmp/vgw
|
|
|
|
COPY --from=0 /app/cmd/versitygw/versitygw /app/versitygw
|
|
|
|
ENTRYPOINT [ "/app/versitygw" ] |