mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
docker: use Python 3 to run web interface
Python 2 is only supported for indexing layers in older branches - the web interface should be running under Python 3. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
parent
5ee59b1564
commit
1bb2d1fd7c
|
@ -13,16 +13,22 @@ RUN apt-get install -y --no-install-recommends \
|
|||
python-mysqldb \
|
||||
python-dev \
|
||||
python-imaging \
|
||||
python3-pip \
|
||||
python3-mysqldb \
|
||||
python3-dev \
|
||||
python3-pil \
|
||||
rabbitmq-server \
|
||||
netcat-openbsd \
|
||||
vim \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
RUN pip install --upgrade pip
|
||||
RUN pip install gunicorn
|
||||
RUN pip3 install gunicorn
|
||||
RUN pip install setuptools
|
||||
RUN pip3 install setuptools
|
||||
RUN mkdir /opt/workdir
|
||||
COPY . /opt/layerindex
|
||||
RUN pip install -r /opt/layerindex/requirements.txt
|
||||
RUN pip3 install -r /opt/layerindex/requirements.txt
|
||||
COPY settings.py /opt/layerindex/settings.py
|
||||
COPY docker/updatelayers.sh /opt/updatelayers.sh
|
||||
COPY docker/migrate.sh /opt/migrate.sh
|
||||
|
|
Loading…
Reference in New Issue
Block a user