-
Notifications
You must be signed in to change notification settings - Fork 13
/
Dockerfile
48 lines (38 loc) · 1.78 KB
/
Dockerfile
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
# debootstrap stage
# ----------------------------------
FROM debian:stable AS builder
RUN apt-get update && \
apt-get install -y debootstrap
ADD . /tmp/debootstrap
WORKDIR /tmp/debootstrap
RUN bash build-image.sh "bullseye" "oldstable"
# final stage
# ----------------------------------
FROM scratch
ARG BUILD_DATE
ARG VCS_REF
ARG VERSION
LABEL org.label-schema.build-date=${BUILD_DATE} \
org.label-schema.name="debian-bullseye" \
org.label-schema.description="A Debian bullseye minimal image built from scratch" \
org.label-schema.url="https://github.com/Dockershelf/dockershelf" \
org.label-schema.vcs-ref=${VCS_REF} \
org.label-schema.vcs-url="https://github.com/Dockershelf/dockershelf" \
org.label-schema.vendor="Luis Alejandro Martínez Faneyth" \
org.label-schema.version=${VERSION} \
org.label-schema.schema-version="1.0.0-rc.1" \
org.opencontainers.image.created=${BUILD_DATE} \
org.opencontainers.image.title="debian-bullseye" \
org.opencontainers.image.description="A Debian bullseye minimal image built from scratch" \
org.opencontainers.image.url="https://github.com/Dockershelf/dockershelf" \
org.opencontainers.image.revision=${VCS_REF} \
org.opencontainers.image.source="https://github.com/Dockershelf/dockershelf" \
org.opencontainers.image.vendor="Luis Alejandro Martínez Faneyth" \
org.opencontainers.image.version=${VERSION} \
org.opencontainers.image.licenses="GPL-3.0" \
maintainer="Luis Alejandro Martínez Faneyth <[email protected]>"
ENV LANG="en_US.UTF-8" LANGUAGE="en_US.UTF-8" LC_ALL="en_US.UTF-8" \
TERM="xterm" DEBIAN_FRONTEND="noninteractive" DEBIAN_RELEASE="bullseye" \
DEBIAN_SUITE="oldstable"
COPY --from=builder /tmp/debootstrap/base /
CMD ["/bin/bash"]