-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile_base
More file actions
41 lines (29 loc) · 1.26 KB
/
Dockerfile_base
File metadata and controls
41 lines (29 loc) · 1.26 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
# syntax=docker/dockerfile:1
FROM python:3.9-slim
RUN apt-get update ; apt-get upgrade -y
RUN apt-get install -y \
wget libc6 inetutils-ping dmidecode nvme-cli open-iscsi iptables \
iproute2 pciutils sudo nano parted gdisk ssh ca-certificates curl kmod
RUN install -m 0755 -d /etc/apt/keyrings
RUN curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
RUN chmod a+r /etc/apt/keyrings/docker.asc
RUN echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian bookworm stable" | \
tee /etc/apt/sources.list.d/docker.list > /dev/null
RUN apt-get update ; apt-get install docker-ce-cli -y
RUN apt-get upgrade -y
RUN rm -rf /var/lib/apt/lists/*
ARG TARGETPLATFORM
RUN if [ "$TARGETPLATFORM" = "linux/arm64" ]; then \
echo "ARM64 version"; \
else \
echo "AMD64 version"; \
wget https://github.com/apple/foundationdb/releases/download/7.3.56/foundationdb-clients_7.3.56-1_amd64.deb; \
dpkg -i foundationdb-clients_7* ; \
rm -f foundationdb-clients_7* ; \
fi
WORKDIR /app
RUN pip3 install --upgrade pip
RUN pip3 install setuptools --upgrade
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt