forked from upciti/wakemeops
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (22 loc) · 811 Bytes
/
Copy pathDockerfile
File metadata and controls
25 lines (22 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
ARG REGISTRY="docker.io"
ARG IMAGE="debian"
ARG TAG="bullseye-slim"
## Base image for builder and runner stages
FROM ${REGISTRY}/${IMAGE}:${TAG} as base_image
COPY --chmod=0755 assets/install_packages /usr/local/bin/
ARG DEBIAN_FRONTEND=noninteractive
ENV DEBIAN_FRONTEND=${DEBIAN_FRONTEND} \
LC_ALL=C.UTF-8 \
LANG=C.UTF-8
USER 0
## Builder Stage
FROM base_image as builder
COPY --chmod=0755 assets/install_repository /usr/local/bin/
ARG COMPONENTS="devops secops terminal dev"
RUN install_repository ${COMPONENTS}
## Final image
FROM base_image as runner
COPY --from=builder /etc/apt/sources.list.d/wakemeops.list /etc/apt/sources.list.d/wakemeops.list
COPY --from=builder /etc/apt/trusted.gpg.d/wakemeops-keyring.gpg /etc/apt/trusted.gpg.d/wakemeops-keyring.gpg
ARG FINAL_USER=0
USER ${FINAL_USER}