Mercurial > libervia-backend
annotate docker/pubsub/Dockerfile @ 4332:71c939e34ca6 default tip @
XEP-0373 (OX): Adjust to gpgme updates: generate with explicit algorithm and subkeys
author | Syndace <me@syndace.dev> |
---|---|
date | Sat, 13 Jul 2024 18:28:28 +0200 |
parents | 31c84a32c897 |
children |
rev | line source |
---|---|
4215 | 1 FROM debian:bookworm-slim |
3381 | 2 |
3 LABEL maintainer="Goffi <tmp_dockerfiles@goffi.org>" | |
4 | |
5 ARG DEBIAN_FRONTEND=noninteractive | |
6 | |
7 RUN apt-get update && apt-get upgrade -y && \ | |
3446
d2298ed6de7f
docker (pubsub): install latest version of `postgresql-client` with PostgreSQL own Debian repos.
Goffi <goffi@goffi.org>
parents:
3445
diff
changeset
|
8 apt-get install -y --no-install-recommends locales python3-dev python3-venv python3-wheel mercurial libpq-dev gcc gnupg && \ |
d2298ed6de7f
docker (pubsub): install latest version of `postgresql-client` with PostgreSQL own Debian repos.
Goffi <goffi@goffi.org>
parents:
3445
diff
changeset
|
9 apt-get install -y --no-install-recommends postgresql-client && \ |
3381 | 10 # it's better to have a dedicated user |
3497
73e04040d577
docker: update following name changes:
Goffi <goffi@goffi.org>
parents:
3446
diff
changeset
|
11 useradd -m libervia && \ |
73e04040d577
docker: update following name changes:
Goffi <goffi@goffi.org>
parents:
3446
diff
changeset
|
12 mkdir /src && chown libervia:libervia /src && \ |
3381 | 13 # we need UTF-8 locale |
14 sed -i "s/# en_US.UTF-8/en_US.UTF-8/" /etc/locale.gen && locale-gen | |
15 | |
16 ENV LC_ALL en_US.UTF-8 | |
17 | |
3497
73e04040d577
docker: update following name changes:
Goffi <goffi@goffi.org>
parents:
3446
diff
changeset
|
18 WORKDIR /home/libervia |
73e04040d577
docker: update following name changes:
Goffi <goffi@goffi.org>
parents:
3446
diff
changeset
|
19 COPY entrypoint.sh /home/libervia |
73e04040d577
docker: update following name changes:
Goffi <goffi@goffi.org>
parents:
3446
diff
changeset
|
20 RUN chown libervia:libervia /home/libervia/entrypoint.sh && chmod 0555 /home/libervia/entrypoint.sh |
3381 | 21 |
3497
73e04040d577
docker: update following name changes:
Goffi <goffi@goffi.org>
parents:
3446
diff
changeset
|
22 USER libervia |
73e04040d577
docker: update following name changes:
Goffi <goffi@goffi.org>
parents:
3446
diff
changeset
|
23 RUN python3 -m venv libervia_env && libervia_env/bin/pip install -U pip wheel && cd /src && \ |
3381 | 24 # we install thoses packages in editable mode, so we can replace them easily with volumes |
3497
73e04040d577
docker: update following name changes:
Goffi <goffi@goffi.org>
parents:
3446
diff
changeset
|
25 hg clone https://repos.goffi.org/sat_tmp && ~/libervia_env/bin/pip install -e sat_tmp && \ |
4215 | 26 hg clone https://repos.goffi.org/libervia-pubsub && ~/libervia_env/bin/pip install -e libervia-pubsub |
3381 | 27 |
3497
73e04040d577
docker: update following name changes:
Goffi <goffi@goffi.org>
parents:
3446
diff
changeset
|
28 ENTRYPOINT ["/home/libervia/entrypoint.sh"] |