forked from TrueCloudLab/frostfs-s3-gw
e15159443b
upx is nice, but not necessary for this and duplicating Makefile is just not good. Note that in absence of vendoring building this can be problematic at the moment because of private repository dependency, it'll be solved in future.
23 lines
347 B
Docker
23 lines
347 B
Docker
FROM golang:1 as builder
|
|
|
|
WORKDIR /src
|
|
|
|
RUN set -x \
|
|
&& apt update \
|
|
&& apt install -y make
|
|
|
|
COPY . /src
|
|
|
|
ARG VERSION=dev
|
|
|
|
RUN make
|
|
|
|
# Executable image
|
|
FROM scratch
|
|
|
|
WORKDIR /
|
|
|
|
COPY --from=builder /src/bin/neofs-s3-gw /bin/neofs-s3-gw
|
|
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
|
|
|
ENTRYPOINT ["/bin/neofs-s3-gw"]
|