-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
29 lines (26 loc) · 871 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
FROM python:3.11-slim
# Install helful tools for debugging even without using the
# python package
RUN apt-get update && \
apt-get install -y \
curl \
iproute2 \
dnsutils \
netcat-traditional \
nmap \
jq \
openssl \
graphviz \
tini \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# So we can identify ourselves later with probe mode
LABEL cloud.localstack.dockerdebug.name=dockerdebug
WORKDIR /app
RUN python -m venv .venv
COPY setup.cfg setup.py ./
# create stub project
# TODO: consistent version
RUN mkdir dockerdebug && echo '__version__ = "0.1.0"' > dockerdebug/__init__.py
RUN /app/.venv/bin/python -m pip install -e .
COPY dockerdebug/ /app/dockerdebug/
ENTRYPOINT ["/usr/bin/tini", "--", "/app/.venv/bin/python", "-m", "dockerdebug"]