Dockerfile: update to ubuntu 18.04, add sources
parent
46ee9f5334
commit
934e4ed67d
|
@ -1,15 +1,16 @@
|
|||
FROM ubuntu:14.04
|
||||
FROM ubuntu:18.04
|
||||
|
||||
RUN set -e -x ;\
|
||||
useradd -rm app
|
||||
|
||||
RUN set -e -x ;\
|
||||
export DEBIAN_FRONTEND=noninteractive ;\
|
||||
apt-get -y update ;\
|
||||
apt-get -y upgrade ;\
|
||||
apt-get -y install python-dev python-virtualenv build-essential libkrb5-dev libsasl2-dev libldap2-dev libssl-dev krb5-user ;\
|
||||
rm -rf /var/lib/apt/lists
|
||||
|
||||
ADD krb5.conf /etc/krb5.conf
|
||||
COPY krb5.conf /etc/krb5.conf
|
||||
|
||||
RUN set -e -x ;\
|
||||
mkdir /app ;\
|
||||
|
@ -17,9 +18,11 @@ RUN set -e -x ;\
|
|||
|
||||
USER app
|
||||
|
||||
ADD requirements.txt /app/requirements.txt
|
||||
COPY requirements.txt /app/requirements.txt
|
||||
|
||||
RUN set -e -x ;\
|
||||
virtualenv /app/venv ;\
|
||||
/app/venv/bin/pip install -r /app/requirements.txt
|
||||
|
||||
COPY --chown=app runserver.py /app/
|
||||
COPY --chown=app webapp /app/webapp
|
||||
|
|
Loading…
Reference in New Issue