Maxim Slipenko
6693ceabcc
Some checks failed
Format and Lint / format-check (push) Has been cancelled
22 lines
No EOL
415 B
Docker
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"] |