-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
32 lines (27 loc) · 1.18 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
FROM ubuntu:22.04
LABEL org.opencontainers.image.authors="[email protected]"
ENV DEBIAN_FRONTEND noninteractive
RUN apt update && \
apt upgrade --yes && \
apt install --no-install-recommends --yes ca-certificates curl gpg locales sudo tzdata && \
rm -rf /var/lib/apt/lists/* && \
groupadd -g 1000 openeid && \
useradd -u 1000 -g 1000 -m openeid && \
echo "openeid ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \
localedef -i et_EE -c -f UTF-8 -A /usr/share/locale/locale.alias et_EE.UTF-8 && \
ln -sf /usr/share/zoneinfo/Europe/Tallinn /etc/localtime
ENV LANG et_EE.UTF-8
ENV TZ Europe/Tallinn
COPY docker-entrypoint.sh /entrypoint.sh
RUN chmod 755 /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
USER 1000:1000
WORKDIR /home/openeid
RUN curl -s https://installer.id.ee/media/install-scripts/install-open-eid.sh \
| sed 's/^\(distro\)=.*/\1=ubuntu/; s/^\(release\)=.*/\1=22.04/; s/^\(codename\)=.*/\1=jammy/; s/lsb_release/true/' \
| sed 's/sudo apt install/sudo apt install -y/' \
| sed 's/read -p.*/policy=y/' \
| sed 's/sudo systemctl/# sudo systemctl/' \
| sed 's/xdg-open/true xdg-open/' \
| bash -x -s \
&& sudo rm -rf /var/lib/apt/lists/*