Skip to content
Snippets Groups Projects
Dockerfile 529 B
Newer Older
  • Learn to ignore specific revisions
  • ARG GOLANG_VERSION=1.23
    
    ARG GITLAB_PROXY
    
    
    FROM ${GITLAB_PROXY}golang:$GOLANG_VERSION-bookworm AS builder
    
    RUN apt-get update && apt-get upgrade -y
    
    
    WORKDIR /app/
    COPY . .
    RUN --mount=type=cache,target=/root/go/pkg/mod \
        --mount=type=cache,target=/root/.cache/go-build \
    
        make build-akms-simulator
    
    FROM ${GITLAB_PROXY}debian:12-slim AS debian
    
    RUN apt-get update && apt-get upgrade -y
    COPY --from=builder app/artifacts/akms-simulator /usr/bin/akms-simulator
    
    EXPOSE 4444
    ENTRYPOINT ["/usr/bin/akms-simulator"]