-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (19 loc) · 736 Bytes
/
Copy pathDockerfile
File metadata and controls
23 lines (19 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM docker.io/alpine:3.20
# install runtime dependencies
RUN apk add --no-cache python3 py3-ruamel.yaml.clib
WORKDIR /opt/heisenbridge
COPY . .
# install deps and run a sanity check
#
# `python3-dev gcc musl-dev` are installed because building `multidict`
# on armv7l fails otherwise. amd64 and aarch64 don't need this.
RUN apk add --no-cache --virtual build-dependencies py3-setuptools py3-pip python3-dev gcc musl-dev && \
python setup.py gen_version && \
rm -rf .git && \
pip install --break-system-packages -e . && \
apk del build-dependencies && \
python -m heisenbridge -h
# identd also needs to be enabled with --identd in CMD
EXPOSE 9898/tcp 113/tcp
ENTRYPOINT ["heisenbridge", "-l", "0.0.0.0"]
CMD []