mirror of
https://github.com/versity/versitygw.git
synced 2026-01-07 04:06:23 +00:00
The azurite container required HTTPS access. The certs were
generated with: mkcert localhost 127.0.0.1 ::1 azurite
The azurite seems to be the important name.
The certs are also copied into the system trust for the gateway
as the sdk client needs to be able to trust the certs from the
azurite server.
This also bumps the go module to 1.21 for the error:
/app/s3api/utils/sign_hack.go:43:67: reflect.ValueOf((*ignoredHeaders)[0]).FieldByName("Rule").Elem().Clear undefined (type reflect.Value has no field or method Clear)
And uses latest golang for Docker.dev.
19 lines
305 B
Docker
19 lines
305 B
Docker
FROM golang:latest
|
|
|
|
WORKDIR /app
|
|
|
|
COPY go.mod ./
|
|
RUN go mod download
|
|
|
|
COPY ./ ./
|
|
COPY certs/* /etc/pki/tls/certs/
|
|
|
|
ARG IAM_DIR=/tmp/vgw
|
|
ARG SETUP_DIR=/tmp/vgw
|
|
|
|
RUN mkdir -p $IAM_DIR
|
|
RUN mkdir -p $SETUP_DIR
|
|
|
|
RUN go get github.com/githubnemo/CompileDaemon
|
|
RUN go install github.com/githubnemo/CompileDaemon
|