aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
AgeCommit message (Collapse)Author
2023-11-14build: Fixup Docker changes from previous (#9223)Jakob Borg
2023-11-14Add `org.opencontainers.image.source` to Dockerfiles (#9211)DerRockWolf
### Purpose The OCI image spec specifies well-defined [annotations](https://github.com/opencontainers/image-spec/blob/main/annotations.md) that can be added to images. Theses annotations can then be used by other tools to gather more information of an image. This PR adds the `org.opencontainers.image.source` to allow tools such as [renovate](https://github.com/renovatebot/renovate) to find the release notes of a give version. ~~I've only done this change for `Dockerfile`. Should I also add the label to the other dockerfiles?~~ I've now added the source annotations to all `Dockerfile`s & action workflows. ### Testing None, change was done by following the [renovate documentation](https://docs.renovatebot.com/modules/datasource/docker/).
2023-06-28cmd/syncthing: Add environment variables for --home, --conf, and --data ↵Jakob Borg
(fixes #8957) (#8952) This allows environment overrides for our directories. This is advantageous because, apart from the obvious, it means we can set it in the Docker file and not add command line options there. Having the command line option as we did meant that it was impossible to use the Docker image for other commands than `serve` (because that is implied when we see other options on the command line).
2023-06-14build: Multi arch Docker images with GitHub actions (ref #8834)Jakob Borg
This builds and publishes our Docker images from GitHub.
2022-12-16docker: Ensure entrypoint is executable (#8719)James O'Beirne
On systems with safe umasks (`umask 077`), the entrypoint as copied from the host may not be executable by other users. Ensure that it is set to be within the Dockerfile.
2022-11-03docker: Use healthcheck endpoint (#8640)bt90
Query healthcheck endpoint
2022-10-02docker: Fix handling of PCAP variable (fixes #8567) (#8568)Jakob Borg
This correctly handles the absense of the PCAP environment variable, which was broken in the previous change.
2022-09-26docker: Add env var to control capabilities (#8552)Jakob Borg
As it's not simple to run a container under Docker/Kubernetes as non-root but with additional capabilities, add an internal hack.
2021-03-02docker: Expose 22000/udp (#7421)bt90
Co-authored-by: otbutz <tbutz@optitool.de>
2020-05-16docker: Add tzdata for local time log entriesJakob Borg
2020-05-15docker: Improved health check for host networks (#6649)Shaarad Dalvi
2020-05-08docker: Remove health check (fixes #6604) (#6616)Shaarad Dalvi
Co-authored-by: Shaarad Dalvi <shdalv@microsoft.com>
2020-05-04docker: Accept Go version as --build-argJakob Borg
2019-11-11docker: Add stdiscosrv and strelaysrv Dockerfiles (#6143)v1.3.2-rc.1Jacob
2019-09-22docker: Make it easy to disable the GUI, document it (#6021)Jakob Borg
2019-09-20docker: Build using Go 1.13Jakob Borg
2019-05-18docker: Create entrypoint script (fixes #5631) (#5635)Tom Jakubowski
2019-04-07docker: Update build image versionJakob Borg
2019-01-31docker: Build outside GOPATH (fixes #5495)Jakob Borg
2018-09-11dockerfile: Improve UID/GID handling (fixes #5180) (#5181)Jakob Borg
This removes the user and group juggling, which would fail when given for example a PGID that already existed as the "syncthing" group could then not be created with that PGID. It's not reasonable to expect the user to know which group/user names/IDs are already present in the Docker image. Instead we now just launch under the specified IDs, while manually setting the HOME env var to give us a home directory - the only thing we needed the user entry for anyway. Also updates to Go 1.11 and building without upgrades instead of disabling by env var.
2018-08-15Dockerfile: Reduce number of container layers for final image (#5124)Andrew Rabert
2018-07-20dockerfile: Create a dedicated syncthing user (#5072)Benedikt Heine
A dedicated user is necessary to create relative references via ~/<folder> or $HOME/<folder>. Having the syncthing process just running under a unprivileged UID/GID, will remove the home folder relation and therefore will result in nonexistent shares after update. Signed-off-by: Benedikt Heine <bebe@bebehei.de>
2018-07-09dockerfile: Install su-exec without updating. (#5051)rubenbe
* Using --no-cache instead prevents unnecessarily adding about 1.3MB of Alpine package data * This reduces the uncompressed image size with about 6%.
2018-07-04docker: Add configurable UID and GID (#5041)Andrew Rabert
Allows for configuring the UID and GID Syncthing runs as in the container. Uses su-exec from the Alpine repos to accomplish this. Addition of su-exec results in <2MB increase in image size.
2018-05-05dockerfile: Incorporate exposed ports, add volume (#4908)Nils Jakobi
Added EXPOSE to Dockerfile. this way these ports will show up in docker GUIs like cockpit. Added VOLUME parameter, this renders creating the folder (/var/syncthing) obsolete.
2018-03-24docker: Build using Go 1.10Jakob Borg
2018-02-04dockerfile: Add Dockerfile (#4733)Jakob Borg
This adds a multi stage build Dockerfile. The end state is equivalent to the current syncthing/docker repository (which will be retired).