Skip to content

Commit e7572fa

Browse files
author
Vic Shóstak
committed
Fix Dockerfile
1 parent 2fe40bd commit e7572fa

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

.goreleaser.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,22 @@ dockers:
2828
goos: linux
2929
goarch: amd64
3030

31+
# Name templates of the built binaries that should be used.
32+
binaries:
33+
- cgapp
34+
3135
# Templates of the Docker image names.
3236
image_templates:
33-
- "koddr/cgapp:latest"
34-
- "koddr/cgapp:{{ .Tag }}"
35-
- "koddr/cgapp:{{ .Tag }}-{{ .Env.GO_VERSION }}"
3637
- "koddr/cgapp:v{{ .Major }}"
38+
- "koddr/cgapp:{{ .Tag }}"
39+
- "koddr/cgapp:latest"
3740

3841
skip_push: true
3942

4043
# Path to the Dockerfile (from the project root).
4144
dockerfile: Dockerfile
42-
extra_files:
43-
- dist/cgapp_linux_amd64/cgapp
45+
# extra_files:
46+
# - dist/cgapp_linux_amd64/cgapp
4447

4548
archives:
4649
- # Replacements for GOOS and GOARCH in the archive name.
@@ -50,7 +53,7 @@ archives:
5053
windows: Windows
5154
amd64: x86_64
5255

53-
# Can be used to change the archive formats for specific GOOSs.
56+
# Can be used to change the archive formats for specific GOOS.
5457
format_overrides:
5558
- goos: windows
5659
format: zip

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
FROM alpine:latest
1+
FROM alpine:3.12
22

33
LABEL maintainer="Vic Shóstak <[email protected]>"
44

5+
# Copy Create Go App binary
6+
COPY cgapp /cgapp
7+
58
# Install git
69
RUN apk add --no-cache git npm
710

811
# Install frontend CLIs
912
RUN npm i -g -s create-react-app preact-cli @vue/cli degit @angular/cli
1013

11-
# Copy Create Go App binary
12-
COPY dist/cgapp_linux_amd64/cgapp .
13-
1414
# Set entry point to /cgapp
1515
ENTRYPOINT ["/cgapp"]

0 commit comments

Comments
 (0)