aides-repo-api/Dockerfile

19 lines
397 B
Text
Raw Normal View History

2024-12-04 11:46:42 +00:00
FROM golang:latest AS builder
WORKDIR /app
2024-12-04 11:46:42 +00:00
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN make build
2024-12-04 11:46:42 +00:00
2024-12-15 09:03:11 +00:00
FROM registry.altlinux.org/sisyphus/alt:20241211
2024-12-04 11:46:42 +00:00
RUN \
apt-get update && \
apt-get install apt-repo-tools && \
rm -f /var/lib/apt/lists/*.* && \
rm -f /var/cache/apt/*.bin
COPY --from=builder /app/aides-repo-api /bin/aides-repo-api
ENTRYPOINT ["/bin/aides-repo-api"]