mirror of
https://github.com/lukaszraczylo/gohoarder.git
synced 2026-06-05 22:53:53 +00:00
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! perf: build frontend once on runner instead of in Docker
This commit is contained in:
+5
-2
@@ -2,7 +2,9 @@
|
|||||||
# This Dockerfile expects a PRE-BUILT binary from GoReleaser (no compilation)
|
# This Dockerfile expects a PRE-BUILT binary from GoReleaser (no compilation)
|
||||||
# GoReleaser injects the platform-specific binary automatically
|
# GoReleaser injects the platform-specific binary automatically
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM --platform=$TARGETPLATFORM alpine:latest
|
||||||
|
|
||||||
|
ARG TARGETARCH
|
||||||
|
|
||||||
# Install runtime dependencies (including CGO/SQLite dependencies)
|
# Install runtime dependencies (including CGO/SQLite dependencies)
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
@@ -20,7 +22,8 @@ RUN addgroup -g 1000 gohoarder && \
|
|||||||
|
|
||||||
# Copy pre-built binary from GoReleaser
|
# Copy pre-built binary from GoReleaser
|
||||||
# GoReleaser will automatically inject the correct binary for the target platform
|
# GoReleaser will automatically inject the correct binary for the target platform
|
||||||
COPY migrate /usr/local/bin/migrate
|
# In split/merge mode, binaries are in linux/${TARGETARCH}/ subdirectories
|
||||||
|
COPY linux/${TARGETARCH}/migrate /usr/local/bin/migrate
|
||||||
RUN chmod +x /usr/local/bin/migrate
|
RUN chmod +x /usr/local/bin/migrate
|
||||||
|
|
||||||
# Copy migration SQL files
|
# Copy migration SQL files
|
||||||
|
|||||||
+5
-2
@@ -2,7 +2,9 @@
|
|||||||
# This Dockerfile expects a PRE-BUILT binary from GoReleaser (no compilation)
|
# This Dockerfile expects a PRE-BUILT binary from GoReleaser (no compilation)
|
||||||
# GoReleaser injects the platform-specific binary automatically
|
# GoReleaser injects the platform-specific binary automatically
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM --platform=$TARGETPLATFORM alpine:latest
|
||||||
|
|
||||||
|
ARG TARGETARCH
|
||||||
|
|
||||||
# Install scanning tools and runtime dependencies (including CGO/SQLite dependencies)
|
# Install scanning tools and runtime dependencies (including CGO/SQLite dependencies)
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
@@ -41,7 +43,8 @@ RUN mkdir -p /var/cache/gohoarder \
|
|||||||
|
|
||||||
# Copy pre-built binary from GoReleaser
|
# Copy pre-built binary from GoReleaser
|
||||||
# GoReleaser will automatically inject the correct binary for the target platform
|
# GoReleaser will automatically inject the correct binary for the target platform
|
||||||
COPY gohoarder /usr/local/bin/gohoarder
|
# In split/merge mode, binaries are in linux/${TARGETARCH}/ subdirectories
|
||||||
|
COPY linux/${TARGETARCH}/gohoarder /usr/local/bin/gohoarder
|
||||||
RUN chmod +x /usr/local/bin/gohoarder
|
RUN chmod +x /usr/local/bin/gohoarder
|
||||||
|
|
||||||
# Copy example config
|
# Copy example config
|
||||||
|
|||||||
+5
-2
@@ -2,7 +2,9 @@
|
|||||||
# This Dockerfile expects a PRE-BUILT binary from GoReleaser (no compilation)
|
# This Dockerfile expects a PRE-BUILT binary from GoReleaser (no compilation)
|
||||||
# GoReleaser injects the platform-specific binary automatically
|
# GoReleaser injects the platform-specific binary automatically
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM --platform=$TARGETPLATFORM alpine:latest
|
||||||
|
|
||||||
|
ARG TARGETARCH
|
||||||
|
|
||||||
# Install runtime dependencies (CGO/SQLite requires these)
|
# Install runtime dependencies (CGO/SQLite requires these)
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
@@ -28,7 +30,8 @@ RUN mkdir -p /var/cache/gohoarder \
|
|||||||
|
|
||||||
# Copy pre-built binary from GoReleaser
|
# Copy pre-built binary from GoReleaser
|
||||||
# GoReleaser will automatically inject the correct binary for the target platform
|
# GoReleaser will automatically inject the correct binary for the target platform
|
||||||
COPY gohoarder /usr/local/bin/gohoarder
|
# In split/merge mode, binaries are in linux/${TARGETARCH}/ subdirectories
|
||||||
|
COPY linux/${TARGETARCH}/gohoarder /usr/local/bin/gohoarder
|
||||||
RUN chmod +x /usr/local/bin/gohoarder
|
RUN chmod +x /usr/local/bin/gohoarder
|
||||||
|
|
||||||
# Copy example config
|
# Copy example config
|
||||||
|
|||||||
Reference in New Issue
Block a user