annotate Dockerfile.server @ 18:a527228aa353 default tip

prefect use postgres
author drewp@bigasterisk.com
date Fri, 19 Jul 2024 21:01:09 -0700
parents 6ed25bcaaf1f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
53ae53f7d1b3 add k8s config
drewp@bigasterisk.com
parents:
diff changeset
1 FROM reg:5000/base_basic
53ae53f7d1b3 add k8s config
drewp@bigasterisk.com
parents:
diff changeset
2
53ae53f7d1b3 add k8s config
drewp@bigasterisk.com
parents:
diff changeset
3 WORKDIR /opt
15
6ed25bcaaf1f add prefect and rebuild flow to k8s
drewp@bigasterisk.com
parents: 14
diff changeset
4 RUN useradd --uid 1020 --gid nogroup --create-home scobot
6ed25bcaaf1f add prefect and rebuild flow to k8s
drewp@bigasterisk.com
parents: 14
diff changeset
5 RUN chown 1020 -R /opt /tmp/cache
6ed25bcaaf1f add prefect and rebuild flow to k8s
drewp@bigasterisk.com
parents: 14
diff changeset
6 USER scobot
7
53ae53f7d1b3 add k8s config
drewp@bigasterisk.com
parents:
diff changeset
7
53ae53f7d1b3 add k8s config
drewp@bigasterisk.com
parents:
diff changeset
8 COPY pyproject.toml pdm.lock ./
53ae53f7d1b3 add k8s config
drewp@bigasterisk.com
parents:
diff changeset
9 RUN pdm sync
53ae53f7d1b3 add k8s config
drewp@bigasterisk.com
parents:
diff changeset
10
8
f23b21bd0fce apex search
drewp@bigasterisk.com
parents: 7
diff changeset
11 RUN pdm run python -c 'import nltk; nltk.download("punkt")'
f23b21bd0fce apex search
drewp@bigasterisk.com
parents: 7
diff changeset
12
11
6622bacb0b84 first pass at reorg
drewp@bigasterisk.com
parents: 8
diff changeset
13 COPY env ./
14
b9c2b7fedbcd fix up deployment and connect ui to server again
drewp@bigasterisk.com
parents: 11
diff changeset
14 COPY scobot/ ./scobot/