annotate Dockerfile @ 17:a4778c56cc03

update deps and k8s setup
author drewp@bigasterisk.com
date Sun, 12 Dec 2021 22:32:25 -0800
parents db4037285592
children 6f38aa08408d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
17
a4778c56cc03 update deps and k8s setup
drewp@bigasterisk.com
parents: 16
diff changeset
1 FROM bang5:5000/base_basic
4
f714a6a7842c start new web view for hgand github syncing
drewp@bigasterisk.com
parents:
diff changeset
2
f714a6a7842c start new web view for hgand github syncing
drewp@bigasterisk.com
parents:
diff changeset
3 WORKDIR /opt
f714a6a7842c start new web view for hgand github syncing
drewp@bigasterisk.com
parents:
diff changeset
4
17
a4778c56cc03 update deps and k8s setup
drewp@bigasterisk.com
parents: 16
diff changeset
5 RUN apt-get install -y python3 libpython3-dev python3-openssl python3-cffi-backend
a4778c56cc03 update deps and k8s setup
drewp@bigasterisk.com
parents: 16
diff changeset
6 RUN python3 -m pip install mercurial
4
f714a6a7842c start new web view for hgand github syncing
drewp@bigasterisk.com
parents:
diff changeset
7
17
a4778c56cc03 update deps and k8s setup
drewp@bigasterisk.com
parents: 16
diff changeset
8 RUN python3 -m pip install -U pip
4
f714a6a7842c start new web view for hgand github syncing
drewp@bigasterisk.com
parents:
diff changeset
9 COPY requirements.txt ./
17
a4778c56cc03 update deps and k8s setup
drewp@bigasterisk.com
parents: 16
diff changeset
10 RUN python3 -m pip install --index-url https://projects.bigasterisk.com/ --extra-index-url https://pypi.org/simple -r requirements.txt
a4778c56cc03 update deps and k8s setup
drewp@bigasterisk.com
parents: 16
diff changeset
11 RUN python3 -m pip install -U 'https://github.com/drewp/cyclone/archive/python3.zip?v3'
a4778c56cc03 update deps and k8s setup
drewp@bigasterisk.com
parents: 16
diff changeset
12 RUN python3 -m pip install -U cffi
a4778c56cc03 update deps and k8s setup
drewp@bigasterisk.com
parents: 16
diff changeset
13 RUN python3 -m pip install 'https://foss.heptapod.net/mercurial/hg-git/-/archive/branch/default/hg-git-branch-default.zip'
4
f714a6a7842c start new web view for hgand github syncing
drewp@bigasterisk.com
parents:
diff changeset
14 RUN groupadd --gid 1000 drewp && useradd --uid 501 --gid 1000 drewp
f714a6a7842c start new web view for hgand github syncing
drewp@bigasterisk.com
parents:
diff changeset
15
f714a6a7842c start new web view for hgand github syncing
drewp@bigasterisk.com
parents:
diff changeset
16 COPY root-hgrc /root/.hgrc
17
a4778c56cc03 update deps and k8s setup
drewp@bigasterisk.com
parents: 16
diff changeset
17 COPY config.yaml hg_status.py index.html ./
4
f714a6a7842c start new web view for hgand github syncing
drewp@bigasterisk.com
parents:
diff changeset
18 COPY dot-ssh/* /root/.ssh/
f714a6a7842c start new web view for hgand github syncing
drewp@bigasterisk.com
parents:
diff changeset
19 #USER drewp
f714a6a7842c start new web view for hgand github syncing
drewp@bigasterisk.com
parents:
diff changeset
20
17
a4778c56cc03 update deps and k8s setup
drewp@bigasterisk.com
parents: 16
diff changeset
21 CMD ["python3", "hg_status.py", "-v"]