2020-12-02 10:09:08 +02:00
|
|
|
FROM python:3.6-alpine3.11
|
2017-02-13 12:39:21 +02:00
|
|
|
|
2020-12-02 10:09:08 +02:00
|
|
|
WORKDIR /gns3server
|
2017-02-13 12:39:21 +02:00
|
|
|
|
2020-12-02 10:09:08 +02:00
|
|
|
ENV LANG en_US.UTF-8
|
|
|
|
ENV LANGUAGE en_US:en
|
|
|
|
ENV LC_ALL en_US.UTF-8
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE 1
|
|
|
|
ENV PYTHONBUFFERED 1
|
2017-02-13 12:39:21 +02:00
|
|
|
|
2020-12-02 10:09:08 +02:00
|
|
|
COPY ./requirements.txt /gns3server/requirements.txt
|
2017-02-13 12:39:21 +02:00
|
|
|
|
2020-12-02 10:09:08 +02:00
|
|
|
RUN set -eux \
|
|
|
|
&& apk add --no-cache --virtual .build-deps build-base \
|
|
|
|
gcc libc-dev musl-dev linux-headers python3-dev \
|
|
|
|
vpcs qemu libvirt ubridge \
|
2021-10-09 04:46:50 +03:00
|
|
|
&& pip install --no-cache-dir --upgrade pip setuptools wheel \
|
|
|
|
&& pip install --no-cache-dir -r /gns3server/requirements.txt
|
2018-03-12 08:38:50 +02:00
|
|
|
|
2020-12-02 10:09:08 +02:00
|
|
|
COPY . /gns3server
|
|
|
|
RUN python3 setup.py install
|