2017-02-13 10:39:21 +00:00
|
|
|
# Dockerfile for GNS3 server development
|
|
|
|
|
2019-05-18 13:19:34 +00:00
|
|
|
FROM ubuntu:18.04
|
2017-02-13 10:39:21 +00:00
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
|
|
|
# Set the locale
|
|
|
|
ENV LANG en_US.UTF-8
|
|
|
|
ENV LANGUAGE en_US:en
|
|
|
|
ENV LC_ALL en_US.UTF-8
|
|
|
|
|
|
|
|
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 \
|
|
|
|
python3-dev \
|
|
|
|
qemu-system-x86 \
|
|
|
|
qemu-kvm \
|
|
|
|
libvirt-bin \
|
|
|
|
x11vnc
|
|
|
|
|
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
|
|
|
|
|
2021-09-22 09:47:21 +00:00
|
|
|
RUN pip3 install --no-cache-dir -r /server/requirements.txt
|
2017-02-13 10:39:21 +00:00
|
|
|
|
|
|
|
EXPOSE 3080
|
|
|
|
|
2020-03-26 01:36:05 +00:00
|
|
|
CMD python3 -m gns3server
|