frostfs-s3-gw/Dockerfile
Roman Khimov e15159443b Dockerfile: reuse make, drop upx
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.
2021-05-13 22:08:33 +03:00

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"]