-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
52 lines (43 loc) · 1.37 KB
/
Dockerfile
File metadata and controls
52 lines (43 loc) · 1.37 KB
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
ARG ARCH=
FROM ${ARCH}ubuntu:jammy as base
ARG ARCH
ENV ARCH=${ARCH}
RUN cd ~ && \
export DEBIAN_FRONTEND='noninteractive' && \
apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends apt-utils locales ca-certificates && \
apt-get clean all && \
locale-gen en_US en_US.UTF-8 ru_RU.UTF-8 && \
update-locale LANG=en_US.utf8 LANGUAGE=en_US:en && \
echo "LANG="en_US.utf8" \n\
LANGUAGE="en_US:en" \n\
export LANG \n\
export LANGUAGE\n" >> /etc/bash.bashrc && \
echo 'Ok'
RUN cd ~ && \
apt-get install -y --no-install-recommends tzdata debconf-utils mc less nano wget net-tools dnsutils iputils-ping sudo curl python3 python3-pip python3-venv && \
apt-get clean all && \
echo 'Ok'
RUN cd ~ && \
echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/wheel && \
useradd -r wheel && \
groupadd -r -g 1000 www && \
useradd -g 1000 -r -G wheel www && \
echo 'Ok'
FROM docker.io/authelia/authelia:latest AS authelia
FROM base
COPY --from=authelia /app/authelia /usr/local/bin/authelia
RUN python3 -m venv /usr/local && /usr/local/bin/python3 -m pip install --upgrade pip
ADD files/root/requirements.txt /root/requirements.txt
RUN cd ~ && \
/usr/local/bin/pip3 install -r /root/requirements.txt && \
rm -rf /root/.cache/pip && \
echo "Ok"
RUN cd ~ && \
mkdir /app && \
chown 1000:1000 /app && \
echo "Ok"
ADD files /
ADD src /app
CMD ["/root/run.sh"]