-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (16 loc) · 737 Bytes
/
Dockerfile
File metadata and controls
23 lines (16 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM alpine:3.23.4
# Install the magic wrapper.
ADD ./start.sh /start.sh
ADD ./config.ini /config.ini
ADD ./requirements.txt /requirements.txt
COPY dependencies.json /tmp/dependencies.json
RUN mkdir /data && \
apk add --no-cache --virtual=build-dependencies jq gcc python3-dev musl-dev linux-headers \
&& jq -r 'to_entries | .[] | .key + "=" + .value' /tmp/dependencies.json | xargs apk add --no-cache \
&& pip install -r /requirements.txt --break-system-packages \
&& apk del --purge build-dependencies
CMD [ "/start.sh" ]
# workaround for https://github.com/GNS3/gns3-server/issues/2367
RUN ln -s /bin/busybox /usr/lib/python*/site-packages/gns3server/compute/docker/resources/bin
WORKDIR /data
VOLUME ["/data"]