Commit Graph

9 Commits

Author SHA1 Message Date
Matthew Cengia
d763e69799
Use target platform (rather than build platform) for multi-platform container images
Signed-off-by: Matthew Cengia <mattcen@mattcen.com>
2023-01-23 14:28:07 +07:00
Hugh Nimmo-Smith
d27aa137cf Build a docker image using unprivileged nginx
BREAKING CHANGE the exposed port has changed from 80 to 8080
2023-01-20 13:31:14 +00:00
Hugh Nimmo-Smith
b993bc0955 Build docker image for multiple architectures including ARM
This is based on https://www.docker.com/blog/faster-multi-platform-builds-dockerfile-cross-compilation-guide/ which doesn't use QEMU
2023-01-19 17:07:55 +00:00
Bruno Windels
86ce54d69c
Merge pull request #983 from vector-im/hughns/docker-deps-layer
Install npm deps in separate docker layer
2023-01-17 08:50:45 +00:00
Hugh Nimmo-Smith
6fa73ec214 Install npm deps in separate docker layer 2023-01-11 18:55:28 +00:00
Hugh Nimmo-Smith
df6474b637 Allow config override in docker image 2023-01-11 18:06:25 +00:00
xunzhou
17f24942da Required pkg for aarch64 docker build 2021-09-29 19:31:39 -07:00
Jan Christian Grünhage
bc2e7a7366 chore: optimise Dockerfile
So far, the Dockerfile built hydrogen on the server running the image,
instead of building it during the building of the image. This blew up
the image size immensely and caused node+yarn to run in the resulting
image. This new Dockerfile builds hydrogen in a separate build stage and
then moves the target directory into an nginx based container image,
which takes care of serving the target webroot.

The existing Dockerfile has been moved to Dockerfile-dev for usage as a
development environment. The docs have been adjusted accordingly.

Additionally, this switched from a fixed alpine version of the node
image to the latest alpine version, and changed the container image
references in the `FROM` statements to use the fully qualified
references including the registry domain.
2021-03-14 12:52:35 +01:00
Yohann D'ANELLO
e574b392e1 Add Dockerfile
Signed-off-by: Yohann D'ANELLO <yohann.danello@gmail.com>
2020-10-21 13:01:16 +02:00