mirror of
https://github.com/gabehf/music-importer.git
synced 2026-04-22 11:31:52 -07:00
bleh
This commit is contained in:
parent
a8a5459b06
commit
853f08221f
9 changed files with 440 additions and 388 deletions
|
|
@ -14,8 +14,9 @@ RUN go mod download
|
|||
# Copy source code
|
||||
COPY . .
|
||||
|
||||
# Build Go binary
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -o importer .
|
||||
# Accept version from build arg and bake it into the binary
|
||||
ARG VERSION=dev
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-X main.version=${VERSION}" -o importer .
|
||||
|
||||
# Stage 2: Runtime on Ubuntu 24.04
|
||||
FROM ubuntu:24.04
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue