-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.rockylinux
66 lines (56 loc) · 1.45 KB
/
Dockerfile.rockylinux
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="9"
FROM docker.io/library/rockylinux:${UPSTREAM_VERSION} AS upstream
ENV MD_LINUX_DISTRIBUTION_TYPE="RPM"
ENV MD_LINUX_DISTRIBUTION_NAME="Rocky Linux"
ARG UPSTREAM_VERSION="9"
ENV MD_LINUX_DISTRIBUTION_VER="${UPSTREAM_VERSION}"
FROM upstream AS standard
ENV LANG="C.UTF-8"
ENV TZ="UTC"
RUN echo "install_weak_deps=false" | tee -a /etc/dnf/dnf.conf
RUN dnf update -y && \
dnf install -y 'dnf-command(config-manager)' && \
dnf install -y epel-release && \
crb enable && \
dnf update -y && \
dnf swap -y curl-minimal curl && \
dnf install -y \
bind-utils \
fontconfig \
iputils \
gzip \
shadow-utils \
tar \
util-linux \
vim \
wget \
which && \
dnf clean all && \
rm -rf \
/tmp/* \
/var/cache \
/var/log/* \
/var/tmp/* && \
dnf --version
RUN groupadd -r -g 9999 mangadex && useradd -m -u 9999 -g 9999 mangadex
USER mangadex
FROM standard AS development
USER root
RUN dnf -y update && \
dnf -y group install 'Development Tools' && \
dnf -y install \
git \
zlib-static && \
curl -fsSL https://rpm.nodesource.com/setup_lts.x -o nodesource_setup.sh && \
bash nodesource_setup.sh && \
yum install -y nodejs && \
node -v && \
rm nodesource_setup.sh && \
dnf clean all && \
rm -rf \
/tmp/* \
/var/cache \
/var/log/* \
/var/tmp/* && \
dnf --version
USER mangadex