-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
31 lines (25 loc) · 985 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
FROM python:3.11-slim-bookworm
ENV PIP_ROOT_USER_ACTION=ignore
# Install prerequisites
RUN apt-get update && \
apt-get upgrade --assume-yes && \
apt-get install --assume-yes --no-install-recommends build-essential git unzip wget
# Add files
RUN mkdir /usr/local/share/deenurp/
COPY bin /usr/local/share/deenurp/bin
COPY tests /usr/local/share/deenurp/tests
COPY deenurp /usr/local/share/deenurp/deenurp
COPY deenurp.py setup.py /usr/local/share/deenurp/
# Install deenurp and dependencies
RUN cd /usr/local/share/deenurp/ && \
PYTHON=/usr/local/bin/python3 \
DEENURP=/usr/local/share/deenurp/ \
bin/bootstrap.sh /usr/local/
# clean up sources apt packages
RUN rm -rf /var/lib/apt/lists/* && \
rm -rf /root/.cache/pip && \
rm -rf /usr/local/share/deenurp/src && \
apt-get purge -y --auto-remove git
# create some mount points
RUN mkdir -p /app /fh /mnt /run/shm