Files
syncthing/Dockerfile.stupgrades
T

19 lines
318 B
Docker
Raw Normal View History

2023-01-23 08:38:55 +01:00
ARG GOVERSION=latest
FROM golang:$GOVERSION AS builder
WORKDIR /src
COPY . .
ENV CGO_ENABLED=0
ENV BUILD_HOST=syncthing.net
ENV BUILD_USER=docker
RUN rm -f stupgrades && go run build.go build stupgrades
FROM alpine
EXPOSE 8080
COPY --from=builder /src/stupgrades /bin/stupgrades
2023-05-01 09:30:16 +02:00
ENTRYPOINT [ "/bin/stupgrades" ]