Skip to content

Commit 36529db

Browse files
authored
Fix staging image
1 parent 6ad2833 commit 36529db

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/stage.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ jobs:
2727
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2828

2929
- name: Build Staging
30-
run: go build
30+
run: go build -ldflags="-w -s"
31+
env:
32+
CGO_ENABLED: "0"
33+
GOOS: linux
34+
GOARCH: amd64
3135

3236
- name: Publish
3337
uses: docker/build-push-action@v1

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
FROM docker/compose
2-
COPY pico /bin/pico
3-
ENTRYPOINT ["pico"]
2+
COPY pico /
3+
ENTRYPOINT ["/pico"]

0 commit comments

Comments
 (0)