-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.debian
66 lines (56 loc) · 1.71 KB
/
Dockerfile.debian
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
56
57
58
59
60
61
62
63
64
65
66
ARG UPSTREAM_VERSION="bookworm"
FROM docker.io/library/debian:${UPSTREAM_VERSION}-slim AS upstream
ENV MD_LINUX_DISTRIBUTION_TYPE="DEB"
ENV MD_LINUX_DISTRIBUTION_NAME="Debian"
ARG UPSTREAM_VERSION="bookworm"
ENV MD_LINUX_DISTRIBUTION_VER="${UPSTREAM_VERSION}"
FROM upstream AS standard
ENV LANG="C.UTF-8"
ENV TZ="UTC"
ENV DEBIAN_FRONTEND="noninteractive"
RUN mkdir -pv /etc/apt/apt.conf.d && touch /etc/apt/apt.conf.d/99containers
RUN echo 'APT::Install-Suggests "false";' >> /etc/apt/apt.conf.d/99containers
RUN echo 'Dpkg::Progress-Fancy "0";' >> /etc/apt/apt.conf.d/99containers
RUN apt -qq update && \
apt -qq -y full-upgrade && \
apt -qq -y --no-install-recommends install \
apt-utils \
apt-transport-https \
ca-certificates \
curl \
debian-archive-keyring \
gnupg2 \
vim && \
apt -qq update && \
apt -qq -y full-upgrade && \
apt -qq -y --purge autoremove && \
apt -qq -y clean && \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/log/* \
/var/tmp/* && \
apt --version
RUN groupadd -r -g 9999 mangadex && useradd -m -u 9999 -g 9999 mangadex
USER mangadex
FROM standard AS development
USER root
RUN apt -qq update && \
apt -qq -y full-upgrade && \
apt -qq -y --no-install-recommends install \
build-essential \
git && \
curl -fsSL https://deb.nodesource.com/setup_22.x -o nodesource_setup.sh && \
bash nodesource_setup.sh && \
apt -qq -y install nodejs && \
node -v && \
rm nodesource_setup.sh && \
apt -qq -y --purge autoremove && \
apt -qq -y clean && \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/log/* \
/var/tmp/* && \
apt --version
USER mangadex