diff docker/libervia-web-dev/Dockerfile @ 3497:73e04040d577

docker: update following name changes: `backend_e2e` now print properly backend logs
author Goffi <goffi@goffi.org>
date Fri, 16 Apr 2021 18:32:16 +0200
parents docker/libervia/Dockerfile@2da32cdf4e53
children 443b3a784eba
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docker/libervia-web-dev/Dockerfile	Fri Apr 16 18:32:16 2021 +0200
@@ -0,0 +1,25 @@
+FROM libervia/backend:dev
+
+LABEL maintainer="Goffi <tmp_dockerfiles@goffi.org>"
+
+ARG DEBIAN_FRONTEND=noninteractive
+
+USER root
+
+RUN apt-get install -y --no-install-recommends yarnpkg
+WORKDIR /home/libervia
+USER libervia
+RUN cd /src && hg clone https://repos.goffi.org/libervia && \
+    ~/libervia_env/bin/pip install -e libervia && \
+    mv libervia/libervia.egg-info ~/libervia_env/lib/python3.*/site-packages
+
+RUN ./entrypoint.sh \
+    # we build here to avoid re-downloading node modules or other browser
+    # dependencies on each run
+    libervia-web fg -- --build-only && \
+    libervia-backend stop
+
+EXPOSE 8080 8443
+
+ENTRYPOINT ["libervia-web"]
+CMD ["fg"]