Commit graph

6 commits

Author SHA1 Message Date
Martin Hebnes Pedersen
68edaee8e9 docker: Resolve FromAsCasing
[ci skip]
2026-01-25 08:54:26 +01:00
Martin Hebnes Pedersen
b518889437 docker: Fix missing /tmp directory
This caused issues in various areas where Pat (and/or dependencies)
relied on os.TempDir() store temporary files. E.g. when running `pat
updateforms`.

We can't do this inside the build container, as there is no way of
specifying file permissions when doing COPY --from. The solution
(inspired by the distroless images) is to ADD a pre-prepared tarball
with the correct file permissions.

`mkdir -m 01777 tmp && tar --owner=root --group=root -cf tmp.tar tmp`
2024-02-19 20:13:20 +01:00
Martin Hebnes Pedersen
8e4aa1b08b docker: Set HTTP listen address by env variable 2023-11-05 12:37:07 +01:00
Martin Hebnes Pedersen
66cd955a88 docker: Make it easier to run on-off commands
Set ENTRYPOINT to the Pat executable, and use CMD to provide default
arguments. By doing this, users can run on-off commands with docker as
if the app was running natively on the host.

E.g. `docker compose run pat interactive`.
2023-11-05 07:46:38 +01:00
Martin Hebnes Pedersen
60dac56b07 Include Root CA certificates in Docker image
Needed for various API calls. Avoids having to mount from host.
2023-10-27 21:35:03 +02:00
Martin Hebnes Pedersen
8bf6162472 Add Dockerfile and docker-compose.yml 2023-10-15 12:39:49 +02:00