mirror of
https://github.com/versity/versitygw.git
synced 2026-01-07 04:06:23 +00:00
25 lines
415 B
Docker
25 lines
415 B
Docker
FROM golang:latest
|
|
|
|
WORKDIR /app
|
|
|
|
COPY go.mod ./
|
|
RUN go mod download
|
|
|
|
COPY ./ ./
|
|
|
|
WORKDIR /app/cmd/versitygw
|
|
ENV CGO_ENABLED=0
|
|
RUN go build -o versitygw
|
|
|
|
FROM alpine:latest
|
|
|
|
# These arguments can be overriden when building the image
|
|
ARG IAM_DIR=/tmp/vgw
|
|
ARG SETUP_DIR=/tmp/vgw
|
|
|
|
RUN mkdir -p $IAM_DIR
|
|
RUN mkdir -p $SETUP_DIR
|
|
|
|
COPY --from=0 /app/cmd/versitygw/versitygw /app/versitygw
|
|
|
|
ENTRYPOINT [ "/app/versitygw" ] |