You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
flux-feed/Dockerfile

21 lines
330 B
Docker

ARG BASE_IMAGE
FROM ${BASE_IMAGE:-golang:1.22}
ARG REPO_NAME
ARG REPO_SHA
WORKDIR /app
# Download Go modules
COPY go.mod ./
RUN go mod download
COPY *.go ./
RUN CGO_ENABLED=0 GOOS=linux go build -o /fluxfeed
EXPOSE 8080
LABEL io.runcible.repo-name="${REPO_NAME}" \
io.runcible.repo-sha="${REPO_SHA}"
CMD ["/fluxfeed"]