27 Commits

Author SHA1 Message Date
Nick Spaargaren
753c0269d7 Upgrade Go version from 1.21 to 1.23 in Dockerfile 2025-11-14 13:32:29 +01:00
Sebastiaan van Stijn
77a4de4819
go.mod: github.com/docker/docker, docker/cli v27.0.3
Update to v27.0, and remove uses of deprecated types.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-07-15 11:44:09 +02:00
Sebastiaan van Stijn
2d16389add
go.mod: github.com/docker/docker, docker/cli v26.1.4
Update to v26.1, and remove uses of deprecated types.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-07-15 11:37:10 +02:00
Sebastiaan van Stijn
0232610967
go.mod: github.com/docker/docker, docker/cli v25.0.5
Update to v25.0, and remove uses of deprecated types.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-07-15 11:25:11 +02:00
Sebastiaan van Stijn
c84bb887a4
update to go1.21
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-07-15 11:07:48 +02:00
Sebastiaan van Stijn
6f85b653d4
go.mod: github.com/docker/docker, docker/cli v24.0.7
Update to v24.0, and remove uses of deprecated types.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-07-15 11:04:43 +02:00
Sebastiaan van Stijn
966ad05338
go.mod: github.com/docker/docker, docker/cli v23.0.10
Update to v23.0, and remove uses of deprecated types.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-07-15 11:02:03 +02:00
Sebastiaan van Stijn
ed600c7116
Dockerfile: fix alpine version
The go1.20 image is not published with alpine 3.15; updating the version.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-07-15 10:59:56 +02:00
Jesse Duffield
e69449c824 Use go 1.20 2023-10-09 22:03:40 +11:00
Jesse Duffield
e8c216a3f9 use alpine that supports go 1.18 2022-05-10 21:23:33 +10:00
Jesse Duffield
5de54dfb0e upgrade to go 1.18 2022-05-09 20:31:16 +10:00
Quentin McGaw
25e877539d Removed PATH variable definition in Dockerfile
As @ibnesayeed mentionned, some environment variables are actually defined even in Scratch Docker images. `PATH` contains `/bin` so there is no need to overwrite it.
2019-07-16 05:06:35 -07:00
Quentin McGaw
80fdf3142b Switched to opencontainers.org labels for Docker image 2019-07-16 05:03:09 -07:00
Quentin McGaw
a497b56e36 Simplified readme instructions for Docker run and removed volume
- Volume did not work properly as the config would be persistent but not shared across restart of the container running interactively.
- Docker run instructions were therefore updated and simplified to bind mount the config directory as volume do not really work in this situation.
2019-07-16 05:02:48 -07:00
Quentin McGaw
84320dd4de Uses modules for Docker build 2019-07-16 05:00:52 -07:00
Quentin McGaw
dedafb3acf All binaries are in /bin directory. 2019-07-15 22:11:08 -07:00
Quentin McGaw
98697c544e Added Docker CLI binary to final image 2019-07-15 22:03:17 -07:00
Quentin McGaw
a01f704d61 Added volume to Dockerfile so bind mounting is optional 2019-07-06 14:56:06 +02:00
Quentin McGaw
e637497fdb Removed useless installsuffix cgo from Docker Go build 2019-07-05 01:29:33 +02:00
Quentin McGaw
20f4ad8e49 Resolved screen size issue, final Docker image uses Scratch 2019-07-02 20:08:29 +02:00
Quentin McGaw
18d34d5c01 VERSION and VCS_REF build arguments are unset by default 2019-07-02 13:57:44 +02:00
Quentin McGaw
c89e396121 Lazydocker can be ran directly as entrypoint
Thanks to the script:

```sh
#!/bin/sh

resize > /dev/null
lazydocker $@
```
2019-07-01 15:39:52 +02:00
Quentin McGaw
fd70aaaf05 Git commit reference mechanism changed
- Git commit is passed as a build argument as explained in README.md
- `.git` directory is ignored by Docker for a quicker build and smaller context
- the build arg VCS_REF is used both to tag the image and the Go program
2019-07-01 15:37:55 +02:00
Quentin McGaw
330131b6ca Fixed Docker regarding no size window with gocui
- Runs the container with `/bin/sh` initially
- Invoke `lazydocker` from within the container, or gocui fails as the terminal window is invalid at launch
2019-07-01 11:57:50 +02:00
Quentin McGaw
ceb8cfcd76 Added Docker labels and Go commit, version and buildSource 2019-07-01 11:51:08 +02:00
Quentin McGaw
1542c70b53 Reworked Dockerfile for a more production oriented usage
- Added .dockerignore to speed up build context and avoid rebuilding when unecessary
- Specified Alpine and Go versions as build arguments
- Specified Go target CPU architecture as build arguments to be able to build for ARM devices
- Specified base images as build arguments to be able to build for ARM devices
- Trimmed down size of final image using `-a -installsuffix cgo -ldflags="-s -w"` go build flags and by copying the statically built binary only to the final image
- Added clear build and run instructions for the Docker container
2019-07-01 09:57:48 +02:00
Jesse Duffield
cf5ec17197 repurpose lazygit code 2019-05-12 10:32:02 +10:00