Skip to content

Commit 208c88d

Browse files
committed
Fix Dockerfile
1 parent 45f88b7 commit 208c88d

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ dockers:
2828
- "--label=org.opencontainers.image.name={{.ProjectName}}"
2929
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
3030
- "--label=org.opencontainers.image.version={{.Version}}"
31-
- "--build-arg=BINARY={{ .ProjectName }}"
31+
- "--label=org.opencontainers.image.source={{.GitURL}}"

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
FROM scratch
2-
ARG BINARY
3-
COPY $BINARY /
4-
ENTRYPOINT ["/$BINARY"]
2+
COPY seed /
3+
ENTRYPOINT ["/seed"]

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,16 @@ It includes:
2727

2828
1. Click the `Use this template` button (alt. clone or download this repository).
2929
1. Replace all occurences of `golang-templates/seed` to `your_org/repo_name` in all files.
30+
1. Replace all occurences of `seed` to `repo_name` in [Dockerfile](Dockerfile).
3031
1. Change [LICENSE](LICENSE) and [README.md](README.md).
3132

32-
### Build
33+
## Build
3334

3435
- Terminal: `make` to get help for make targets.
3536
- Terminal: `make all` to execute a full build.
3637
- Visual Studio Code: `Terminal``Run Build Task... (CTRL+ALT+B)` to execute a fast build.
3738

38-
### Maintainance
39+
## Maintainance
3940

4041
Remember to update Go version in [.github/workflows](.github/workflows), [Makefile](Makefile) and [devcontainer.json](.devcontainer/devcontainer.json).
4142

@@ -45,6 +46,7 @@ Notable files:
4546
- [.vscode](.vscode) - Visual Studio Code configuration files
4647
- [.golangci.yml](.golangci.yml) - golangci-lint configuration
4748
- [.goreleaser.yml](.goreleaser.yml) - GoReleaser configuration
49+
- [Dockerfile](Dockerfile) - Dockerfile used by GoReleaser to create a container image
4850
- [install.sh](install.sh) - build tools installation script
4951
- [Makefile](Makefile) - Make targets used for development, [CI build](.github/workflows) and [.vscode/tasks.json](.vscode/tasks.json)
5052

0 commit comments

Comments
 (0)