fix: quilldrop build in dockerfile
R
Rüdiger Küpper
<rpr@9it.de>
committete am 19.02.2026 01:59
b74c3cfc9a2ceda79c599c6095245ae0853ae9cc
| |
@@ -1 +1,6 @@ |
| 1 |
|
-FROM --platform=$TARGETPLATFORM nginx AS builder |
|
1 |
+FROM --platform=$TARGETPLATFORM golang:1.23-alpine AS quilldrop |
|
2 |
+WORKDIR /build |
|
3 |
+COPY go.mod go.sum ./ |
|
4 |
+RUN go mod download |
|
5 |
+COPY --exclude=static/images . . |
|
6 |
+RUN CGO_ENABLED=0 go build -o quilldrop |
| |
@@ -2,0 +8 @@ FROM --platform=$TARGETPLATFORM nginx AS builder |
|
8 |
+FROM --platform=$TARGETPLATFORM nginx AS builder |
| |
@@ -4 +10 @@ WORKDIR /app |
| 4 |
|
- |
|
10 |
+COPY --from=quilldrop /build/quilldrop ./quilldrop |
| |
@@ -6 +11,0 @@ COPY --exclude=static/images . . |
| 6 |
|
- |
| |
@@ -9 +13,0 @@ RUN ./quilldrop generate |
| 9 |
|
-FROM --platform=$TARGETPLATFORM nginx |
| |
@@ -10,0 +15 @@ FROM --platform=$TARGETPLATFORM nginx |
|
15 |
+FROM --platform=$TARGETPLATFORM nginx |
| |
@@ -12 +16,0 @@ COPY --from=builder /app/output /usr/share/nginx/html |
| 12 |
|
- |
| |
@@ -1 +1 @@ |
| 1 |
|
-.PHONY: serve build docker-static docker-run test clean docker-up docker-down generate-keys migrate |
|
1 |
+.PHONY: serve build docker-images docker-static docker-run |
| |
@@ -2,0 +3 @@ |
|
3 |
+GIT := $(shell git pull --quiet 2>/dev/null || true) |
| |
@@ -4,0 +6,3 @@ LATEST_TAG := $(shell git tag --sort=-version:refname | head -n 1) |
|
6 |
+tag: |
|
7 |
+ @echo "Latest tag: $(LATEST_TAG)" |
|
8 |
+ |