Maxim Slipenko
db49ea2c51
All checks were successful
Format and Lint / format-check (push) Successful in 14m34s
19 lines
No EOL
399 B
Docker
19 lines
No EOL
399 B
Docker
FROM golang:latest AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
COPY . .
|
|
RUN make release
|
|
|
|
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"] |