annotate docker/libervia-web-dev/Dockerfile @ 3563:267e4987b58b

doc: fix remaining SàT references/typos + add `libervia-cli` missing commands
author Goffi <goffi@goffi.org>
date Fri, 11 Jun 2021 09:21:41 +0200
parents 73e04040d577
children 443b3a784eba
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3497
73e04040d577 docker: update following name changes:
Goffi <goffi@goffi.org>
parents: 3424
diff changeset
1 FROM libervia/backend:dev
3381
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
2
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
3 LABEL maintainer="Goffi <tmp_dockerfiles@goffi.org>"
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
4
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
5 ARG DEBIAN_FRONTEND=noninteractive
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
6
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
7 USER root
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
8
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
9 RUN apt-get install -y --no-install-recommends yarnpkg
3497
73e04040d577 docker: update following name changes:
Goffi <goffi@goffi.org>
parents: 3424
diff changeset
10 WORKDIR /home/libervia
73e04040d577 docker: update following name changes:
Goffi <goffi@goffi.org>
parents: 3424
diff changeset
11 USER libervia
3381
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
12 RUN cd /src && hg clone https://repos.goffi.org/libervia && \
3497
73e04040d577 docker: update following name changes:
Goffi <goffi@goffi.org>
parents: 3424
diff changeset
13 ~/libervia_env/bin/pip install -e libervia && \
73e04040d577 docker: update following name changes:
Goffi <goffi@goffi.org>
parents: 3424
diff changeset
14 mv libervia/libervia.egg-info ~/libervia_env/lib/python3.*/site-packages
3381
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
15
3424
2da32cdf4e53 docker(libervia): build site in the image:
Goffi <goffi@goffi.org>
parents: 3419
diff changeset
16 RUN ./entrypoint.sh \
2da32cdf4e53 docker(libervia): build site in the image:
Goffi <goffi@goffi.org>
parents: 3419
diff changeset
17 # we build here to avoid re-downloading node modules or other browser
2da32cdf4e53 docker(libervia): build site in the image:
Goffi <goffi@goffi.org>
parents: 3419
diff changeset
18 # dependencies on each run
3497
73e04040d577 docker: update following name changes:
Goffi <goffi@goffi.org>
parents: 3424
diff changeset
19 libervia-web fg -- --build-only && \
73e04040d577 docker: update following name changes:
Goffi <goffi@goffi.org>
parents: 3424
diff changeset
20 libervia-backend stop
3424
2da32cdf4e53 docker(libervia): build site in the image:
Goffi <goffi@goffi.org>
parents: 3419
diff changeset
21
3419
ccb2a7e66f7d docker (libervia): expose HTTP and HTTPS ports
Goffi <goffi@goffi.org>
parents: 3381
diff changeset
22 EXPOSE 8080 8443
ccb2a7e66f7d docker (libervia): expose HTTP and HTTPS ports
Goffi <goffi@goffi.org>
parents: 3381
diff changeset
23
3497
73e04040d577 docker: update following name changes:
Goffi <goffi@goffi.org>
parents: 3424
diff changeset
24 ENTRYPOINT ["libervia-web"]
3381
127dde80a0a5 docker: dockers images, first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
25 CMD ["fg"]