Compare commits
2 Commits
07c6b89525
...
08856f9a8d
| Author | SHA1 | Date | |
|---|---|---|---|
| 08856f9a8d | |||
| 2522f3536d |
@@ -13,7 +13,7 @@ RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -ldflags="-s -w
|
|||||||
# building the application image
|
# building the application image
|
||||||
FROM alpine:3.23
|
FROM alpine:3.23
|
||||||
RUN addgroup -S goyco && adduser -S -G goyco goyco \
|
RUN addgroup -S goyco && adduser -S -G goyco goyco \
|
||||||
&& apk add --no-cache ca-certificates tzdata
|
&& apk add --no-cache ca-certificates curl tzdata
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=go-builder /out/goyco ./goyco
|
COPY --from=go-builder /out/goyco ./goyco
|
||||||
COPY --from=go-builder /src/internal/static ./internal/static
|
COPY --from=go-builder /src/internal/static ./internal/static
|
||||||
|
|||||||
@@ -25,6 +25,11 @@ services:
|
|||||||
APP_BASE_URL: ${APP_BASE_URL:-http://127.0.0.1:8080}
|
APP_BASE_URL: ${APP_BASE_URL:-http://127.0.0.1:8080}
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "curl -fsS http://localhost:${SERVER_PORT:-8080}/health | grep -q '\"status\":\"healthy\"'"]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- goyco
|
- goyco
|
||||||
|
|||||||
Reference in New Issue
Block a user