-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (32 loc) · 928 Bytes
/
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
33
34
35
36
37
38
39
40
FROM python:3.11-slim
LABEL [email protected]
ARG VERSION=1.6.0
RUN apt -y update && \
apt -y upgrade
RUN apt -y install gcc \
git \
libmariadb-dev-compat \
libpq-dev \
pkg-config
RUN pip install distro \
dnspython \
mysqlclient \
psycopg2
RUN cd /tmp && \
git clone https://github.com/HenriWahl/dhcpy6d.git
RUN cd /tmp/dhcpy6d && \
git checkout v${VERSION} && \
python ./setup.py install
# cleaning unneeded packages
RUN rm -rf /tmp/dhcpy6d
RUN apt -y purge gcc \
git \
libmariadb-dev-compat \
libpq-dev \
pkg-config
RUN apt -y autoremove
RUN useradd --system --user-group dhcpy6d
COPY ./docker-entrypoint.sh /
RUN chmod 755 /docker-entrypoint.sh
WORKDIR /dhcpy6d
ENTRYPOINT ["/docker-entrypoint.sh"]