-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.318
55 lines (49 loc) · 1.38 KB
/
Dockerfile.318
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
FROM harbor.local/docker.io/alpine:3.18
RUN apk add --no-cache --force-overwrite --update \
curl \
wget \
bash \
coreutils \
findutils \
git \
git-lfs \
tar \
gzip \
bzip2 \
file \
shadow \
findutils \
openssl \
jq \
yq \
moreutils \
ca-certificates && \
update-ca-certificates && \
mkdir /work
# Compress Image
FROM scratch AS runtime
COPY --from=0 / /
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
PS1="$(whoami)@$(hostname):$(pwd)\\$ " \
HOME=/work \
TERM=xterm
WORKDIR "/work"
CMD [ "/bin/bash" ]
ARG BUILD_DATE
ARG CI_PROJECT_NAME
ARG CI_PROJECT_URL
ARG VCS_REF
LABEL \
maintainer="G.J.R. Timmer <[email protected]>" \
build_version="${BUILD_DATE}" \
org.opencontainers.image.authors="G.J.R. Timmer <[email protected]>" \
org.opencontainers.image.created="${BUILD_DATE}" \
org.opencontainers.image.title="${CI_PROJECT_NAME}" \
org.opencontainers.image.url="${CI_PROJECT_URL}" \
org.opencontainers.image.documentation="${CI_PROJECT_URL}" \
org.opencontainers.image.source="${CI_PROJECT_URL}.git" \
org.opencontainers.image.ref.name=${VCS_REF} \
org.opencontainers.image.revision=${VCS_REF} \
org.opencontainers.image.base.name="alpine:3.18" \
org.opencontainers.image.licenses=MIT \
org.opencontainers.image.vendor=timmertech.nl