comparison Dockerfile @ 18:6f38aa08408d

starting over: make a web page that draws a streamed graph from collector, with plans for services to scrape the data that collector will subscribe to
author drewp@bigasterisk.com
date Sun, 09 Jan 2022 00:21:41 -0800
parents a4778c56cc03
children cb71722bb75c
comparison
equal deleted inserted replaced
17:a4778c56cc03 18:6f38aa08408d
3 WORKDIR /opt 3 WORKDIR /opt
4 4
5 RUN apt-get install -y python3 libpython3-dev python3-openssl python3-cffi-backend 5 RUN apt-get install -y python3 libpython3-dev python3-openssl python3-cffi-backend
6 RUN python3 -m pip install mercurial 6 RUN python3 -m pip install mercurial
7 7
8 RUN python3 -m pip install -U pip 8 RUN npm install -g npm@8.3.0
9 RUN npm install -g pnpm
10 RUN pnpm set registry "https://bigasterisk.com/js/"
11
9 COPY requirements.txt ./ 12 COPY requirements.txt ./
10 RUN python3 -m pip install --index-url https://projects.bigasterisk.com/ --extra-index-url https://pypi.org/simple -r requirements.txt 13 RUN python3 -m pip install --index-url https://projects.bigasterisk.com/ --extra-index-url https://pypi.org/simple -r requirements.txt
11 RUN python3 -m pip install -U 'https://github.com/drewp/cyclone/archive/python3.zip?v3' 14 RUN python3 -m pip install -U 'https://github.com/drewp/cyclone/archive/python3.zip?v3'
12 RUN python3 -m pip install -U cffi 15 RUN python3 -m pip install -U cffi
13 RUN python3 -m pip install 'https://foss.heptapod.net/mercurial/hg-git/-/archive/branch/default/hg-git-branch-default.zip' 16 RUN python3 -m pip install 'https://foss.heptapod.net/mercurial/hg-git/-/archive/branch/default/hg-git-branch-default.zip'
14 RUN groupadd --gid 1000 drewp && useradd --uid 501 --gid 1000 drewp 17 RUN groupadd --gid 1000 drewp && useradd --uid 501 --gid 1000 drewp
15 18
19 COPY package.json .
20 RUN pnpm install
21
16 COPY root-hgrc /root/.hgrc 22 COPY root-hgrc /root/.hgrc
17 COPY config.yaml hg_status.py index.html ./
18 COPY dot-ssh/* /root/.ssh/ 23 COPY dot-ssh/* /root/.ssh/
24 COPY config.yaml package.json pnpm-lock.yaml tsconfig.json vite.config.ts repo*.py patch_cyclone_sse.py index.html ./
25 COPY view/ ./view
19 #USER drewp 26 #USER drewp
20 27
21 CMD ["python3", "hg_status.py", "-v"] 28 CMD ["python3", "repo_local_status.py", "-v"]