1
0
mirror of https://github.com/rancher/steve.git synced 2025-08-31 06:46:25 +00:00
Files
steve/Dockerfile

15 lines
476 B
Docker
Raw Normal View History

2020-01-30 22:37:59 -07:00
# syntax = docker/dockerfile:experimental
2023-08-10 10:18:59 +05:30
FROM registry.suse.com/bci/golang:1.20 as build
2020-04-15 22:50:00 -07:00
COPY go.mod go.sum main.go /src/
2019-08-04 10:41:32 -07:00
COPY pkg /src/pkg/
#RUN --mount=type=cache,target=/root/.cache/go-build \
RUN \
2020-01-30 22:37:59 -07:00
cd /src && \
2020-04-15 22:50:00 -07:00
CGO_ENABLED=0 go build -ldflags "-extldflags -static -s" -o /steve
2019-08-04 10:41:32 -07:00
FROM registry.suse.com/bci/bci-micro:15.5.11.2
2019-09-11 14:05:00 -07:00
COPY --from=build /steve /usr/bin/steve
2019-08-07 22:42:29 -07:00
# Hack to make golang do files,dns search order
ENV LOCALDOMAIN=""
2019-09-11 14:05:00 -07:00
ENTRYPOINT ["/usr/bin/steve"]