1
0
mirror of https://github.com/GNS3/gns3-server synced 2025-03-12 15:06:06 +00:00
gns3-server/Dockerfile

39 lines
813 B
Docker
Raw Normal View History

2017-02-13 10:39:21 +00:00
# Dockerfile for GNS3 server development
2025-03-08 04:59:05 +00:00
FROM ubuntu:24.04
2017-02-13 10:39:21 +00:00
2025-03-08 04:59:05 +00:00
ENV DEBIAN_FRONTEND=noninteractive
2017-02-13 10:39:21 +00:00
# Set the locale
2025-03-08 04:59:05 +00:00
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENV LC_ALL=en_US.UTF-8
# this environment is externally managed
ENV PIP_BREAK_SYSTEM_PACKAGES=1
2017-02-13 10:39:21 +00:00
RUN apt-get update && apt-get install -y software-properties-common
RUN add-apt-repository ppa:gns3/ppa
RUN apt-get update && apt-get install -y \
2018-03-12 06:38:50 +00:00
locales \
2017-02-13 10:39:21 +00:00
python3-pip \
2025-03-08 04:59:05 +00:00
python3-dev \
2017-02-13 10:39:21 +00:00
qemu-system-x86 \
qemu-kvm \
2025-03-08 04:59:05 +00:00
libvirt-daemon-system libvirt-clients \
x11vnc
2017-02-13 10:39:21 +00:00
2018-03-12 06:38:50 +00:00
RUN locale-gen en_US.UTF-8
2017-02-13 10:39:21 +00:00
# Install uninstall to install dependencies
RUN apt-get install -y vpcs ubridge
ADD . /server
WORKDIR /server
RUN pip3 install --no-cache-dir -r /server/requirements.txt
2017-02-13 10:39:21 +00:00
EXPOSE 3080
2025-03-08 11:19:37 +00:00
CMD ["python3", "-m", "gns3server", "--port", "3080"]