Skip to content
Snippets Groups Projects
Commit 099ef005 authored by Neil-Jocelyn Schark's avatar Neil-Jocelyn Schark
Browse files

use scratch container

parent 0969356a
No related branches found
No related tags found
1 merge request!152Draft: Scratch container
Pipeline #205988 failed
...@@ -11,8 +11,7 @@ RUN --mount=type=cache,target=/root/go/pkg/mod \ ...@@ -11,8 +11,7 @@ RUN --mount=type=cache,target=/root/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \ --mount=type=cache,target=/root/.cache/go-build \
make build-akms-simulator make build-akms-simulator
FROM ${GITLAB_PROXY}debian:12-slim as debian FROM scratch
RUN apt-get update && apt-get upgrade -y
COPY --from=builder app/artifacts/akms-simulator /usr/bin/akms-simulator COPY --from=builder app/artifacts/akms-simulator /usr/bin/akms-simulator
EXPOSE 4444 EXPOSE 4444
......
...@@ -12,11 +12,8 @@ RUN --mount=type=cache,target=/root/go/pkg/mod \ ...@@ -12,11 +12,8 @@ RUN --mount=type=cache,target=/root/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \ --mount=type=cache,target=/root/.cache/go-build \
make build-etsi14module make build-etsi14module
FROM ${GITLAB_PROXY}debian:bookworm-slim FROM scratch
RUN apt-get update && apt-get upgrade -y COPY --from=builder /app/artifacts/etsi14module /usr/bin/etsi14module
WORKDIR /app/
COPY --from=builder /app/artifacts/etsi14module ./etsi14module
EXPOSE 1414 EXPOSE 1414
ENTRYPOINT ["./etsi14module"] ENTRYPOINT ["/usr/bin/etsi14module"]
...@@ -13,8 +13,7 @@ RUN --mount=type=cache,target=/root/go/pkg/mod \ ...@@ -13,8 +13,7 @@ RUN --mount=type=cache,target=/root/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \ --mount=type=cache,target=/root/.cache/go-build \
make build-gokms make build-gokms
FROM ${GITLAB_PROXY}debian:12-slim as debian FROM scratch
RUN apt-get update && apt-get upgrade -y
COPY --from=builder app/artifacts/goKMS /usr/bin/goKMS COPY --from=builder app/artifacts/goKMS /usr/bin/goKMS
EXPOSE 7030 EXPOSE 7030
......
...@@ -12,10 +12,8 @@ RUN --mount=type=cache,target=/root/go/pkg/mod \ ...@@ -12,10 +12,8 @@ RUN --mount=type=cache,target=/root/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \ --mount=type=cache,target=/root/.cache/go-build \
make build-quantumlayer make build-quantumlayer
FROM ${GITLAB_PROXY}debian:bookworm-slim FROM scratch
WORKDIR /app/ COPY --from=builder /app/artifacts/quantumlayer /usr/bin/quantumlayer
RUN apt-get update && apt-get upgrade -y
COPY --from=builder /app/artifacts/quantumlayer ./quantumlayer
EXPOSE 50901 EXPOSE 50901
ENTRYPOINT ["./quantumlayer"] ENTRYPOINT ["/usr/bin/quantumlayer"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment