Skip to content

Commit

Permalink
🔥 wip: enhance structure
Browse files Browse the repository at this point in the history
  • Loading branch information
zcubbs committed Oct 15, 2023
1 parent e93f73a commit 999f12a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@ before:
- go mod tidy
builds:
- env: [CGO_ENABLED=0]
binary: tlz
binary: server
goos:
- linux
goarch:
- amd64
- arm64
id: "cli"
id: "server"
dir: .
main: ./cmd/server/main.go
ldflags:
- -s -w -X main.Version={{.Version}} -X main.Commit={{.Commit}} -X main.Date={{.Date}}

archives:
- id: cli-archive
- id: server-archive
format: tar.gz
files:
- none*
builds:
- cli
- server
format_overrides:
- goos: windows
format: zip
Expand Down
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# alpine:3.18.4
FROM alpine@sha256:48d9183eb12a05c99bcc0bf44a003607b8e941e1d4f41f9ad12bdcc4b5672f86

RUN mkdir app

RUN ls -la

# Copy binary
COPY server /app

WORKDIR /app

ENTRYPOINT ["./server"]

0 comments on commit 999f12a

Please sign in to comment.