-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile_GitHub
34 lines (29 loc) · 1.05 KB
/
Dockerfile_GitHub
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
FROM ubuntu:noble AS base
ARG VAULT_PASS=${VAULT_PASS}
ENV VAULT_PASS=${VAULT_PASS}
WORKDIR /usr/local/bin
ENV DEBIAN_FRONTEND=noninteractive
RUN echo "resolvconf resolvconf/linkify-resolvconf boolean false" | debconf-set-selections
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y software-properties-common curl git build-essential && \
apt-add-repository -y ppa:ansible/ansible && \
apt-get update && \
apt-get install -y snapd curl git ansible build-essential && \
dpkg --configure -a && \
apt-get install -y resolvconf && \
apt-get clean autoclean && \
apt-get autoremove --yes
FROM base AS custom
RUN apt-get update && apt-get install sudo -y
RUN apt-get install dialog apt-utils -y
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
RUN adduser --disabled-password --gecos '' docker
RUN adduser docker sudo
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
USER docker
WORKDIR /home/docker
RUN chmod -R 755 /home/docker
FROM custom
COPY . ./
ENTRYPOINT ["./entrypoint.sh"]