diff docker/libervia/Dockerfile @ 3381:127dde80a0a5

docker: dockers images, first draft: This patch introduce new docker images, replacing the unmaintained ones which were in sat_docs. Images + docker-compose files are provided to use SàT backend and Libervia, but also to integrate and configure Prosody and SàT PubSub to run end-to-end tests.
author Goffi <goffi@goffi.org>
date Mon, 19 Oct 2020 09:30:45 +0200
parents
children ccb2a7e66f7d
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docker/libervia/Dockerfile	Mon Oct 19 09:30:45 2020 +0200
@@ -0,0 +1,17 @@
+FROM salutatoi/sat:latest
+
+LABEL maintainer="Goffi <tmp_dockerfiles@goffi.org>"
+
+ARG DEBIAN_FRONTEND=noninteractive
+
+USER root
+
+RUN apt-get install -y --no-install-recommends yarnpkg
+WORKDIR /home/sat
+USER sat
+RUN cd /src && hg clone https://repos.goffi.org/libervia && \
+    ~/sat_env/bin/pip install -e libervia && \
+    mv libervia/libervia.egg-info ~/sat_env/lib/python3.*/site-packages
+
+ENTRYPOINT ["libervia"]
+CMD ["fg"]