[docker] don't use deprecated onbuild images
authorPhilippe Pepiot <philippe.pepiot@logilab.fr>
Thu, 05 Mar 2020 17:18:27 +0100
changeset 134 ace430a0d133
parent 133 7c4e776206ca
child 135 593655d916c4
[docker] don't use deprecated onbuild images
Dockerfile
--- a/Dockerfile	Thu Mar 05 11:19:24 2020 +0100
+++ b/Dockerfile	Thu Mar 05 17:18:27 2020 +0100
@@ -1,8 +1,11 @@
-ARG CW_INSTANCE_NAME=fresh
-FROM logilab/cubicweb:dev-onbuild
+FROM logilab/cubicweb:dev
 USER root
+COPY . /src/
+RUN pip install -e /src
 RUN pip install -r /src/docker/requirements.txt
 RUN cp /src/docker/pyramid.ini.j2 /pyramid.ini.j2
 RUN install -d -o cubicweb -g cubicweb /etc/cubicweb.d/fresh/bfss
 USER cubicweb
 ENV WITH_TRUSTEDAUTH=false
+ENV CW_INSTANCE=fresh
+RUN docker-cubicweb-helper create-instance