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

Make docker files more similar

See merge request !127
parent f30f5923
Branches
Tags
1 merge request!127Make docker files more similar
Pipeline #195004 passed
......@@ -3,6 +3,7 @@ ARG BUILDARGS
ARG GITLAB_PROXY
FROM ${GITLAB_PROXY}golang:$GOLANG_VERSION-bookworm as builder
RUN apt-get update && apt-get upgrade -y
WORKDIR /app/
COPY . .
......
......@@ -4,6 +4,8 @@ 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 \
......@@ -11,6 +13,10 @@ RUN --mount=type=cache,target=/root/go/pkg/mod \
make build-etsi14module
FROM ${GITLAB_PROXY}debian:bookworm-slim
RUN apt-get update && apt-get upgrade -y
WORKDIR /app/
COPY --from=builder /app/artifacts/etsi14module ./etsi14module
EXPOSE 1414
ENTRYPOINT ["./etsi14module"]
......@@ -15,11 +15,8 @@ RUN --mount=type=cache,target=/root/go/pkg/mod \
FROM ${GITLAB_PROXY}debian:12-slim as debian
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y iproute2
RUN apt-get install -y iputils-ping
RUN apt-get install -y openssh-client openssh-server
RUN apt-get install -y libssl-dev
COPY --from=builder app/artifacts/goKMS /usr/bin/goKMS
EXPOSE 7030
EXPOSE 50900
ENTRYPOINT ["/usr/bin/goKMS"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment