aides-repo-api/Dockerfile
Maxim Slipenko 6693ceabcc
Some checks failed
Format and Lint / format-check (push) Has been cancelled
refactor
2024-12-24 22:40:37 +03:00

22 lines
No EOL
415 B
Docker

FROM golang:latest AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
ARG APP_VERSION
RUN make build
FROM registry.altlinux.org/sisyphus/alt:20241211
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"]