comparison docker/libervia-web-dev/Dockerfile @ 3661:cbb988a6f507

merge bookmark `@`
author Goffi <goffi@goffi.org>
date Wed, 08 Sep 2021 11:20:37 +0200
parents 0ffaa231138c
children 1680eec4cbfd
comparison
equal deleted inserted replaced
3639:05db744f194f 3661:cbb988a6f507
1 FROM libervia/backend:dev 1 ARG REVISION
2 FROM libervia/backend:${REVISION:-dev}
2 3
3 LABEL maintainer="Goffi <tmp_dockerfiles@goffi.org>" 4 LABEL maintainer="Goffi <tmp_dockerfiles@goffi.org>"
4 5
6 ARG REVISION
5 ARG DEBIAN_FRONTEND=noninteractive 7 ARG DEBIAN_FRONTEND=noninteractive
6 8
7 USER root 9 USER root
8 10
9 RUN apt-get install -y --no-install-recommends yarnpkg 11 RUN apt-get install -y --no-install-recommends yarnpkg
10 WORKDIR /home/libervia 12 WORKDIR /home/libervia
11 USER libervia 13 USER libervia
12 RUN cd /src && hg clone https://repos.goffi.org/libervia && \ 14 RUN cd /src && hg clone https://repos.goffi.org/libervia-web -u "${REVISION:-tip}" && \
13 ~/libervia_env/bin/pip install -e libervia && \ 15 ~/libervia_env/bin/pip install -e libervia-web && \
14 mv libervia/libervia_web.egg-info ~/libervia_env/lib/python3.*/site-packages 16 mv libervia-web/libervia_web.egg-info ~/libervia_env/lib/python3.*/site-packages
15 17
16 RUN ./entrypoint.sh \ 18 RUN ./entrypoint.sh \
17 # we build here to avoid re-downloading node modules or other browser 19 # we build here to avoid re-downloading node modules or other browser
18 # dependencies on each run 20 # dependencies on each run
19 libervia-web fg -- --build-only && \ 21 libervia-web fg -- --build-only && \