Mercurial > libervia-backend
annotate docker/libervia-web-dev/Dockerfile @ 3631:bef32f3ccc06
merge branche "@"
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 27 Aug 2021 14:51:40 +0200 |
parents | 443b3a784eba |
children | 0ffaa231138c |
rev | line source |
---|---|
3497
73e04040d577
docker: update following name changes:
Goffi <goffi@goffi.org>
parents:
3424
diff
changeset
|
1 FROM libervia/backend:dev |
3381 | 2 |
3 LABEL maintainer="Goffi <tmp_dockerfiles@goffi.org>" | |
4 | |
5 ARG DEBIAN_FRONTEND=noninteractive | |
6 | |
7 USER root | |
8 | |
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 | 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 && \ |
3613
443b3a784eba
docker: fix Dockerfile following repositories redirections
Goffi <goffi@goffi.org>
parents:
3497
diff
changeset
|
14 mv libervia/libervia_web.egg-info ~/libervia_env/lib/python3.*/site-packages |
3381 | 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 | 25 CMD ["fg"] |