Compare commits
3 commits
af9b589627
...
c2778c178a
Author | SHA1 | Date | |
---|---|---|---|
c2778c178a | |||
8c56cfc898 | |||
cad728f982 |
4 changed files with 9 additions and 9 deletions
|
@ -3,7 +3,7 @@ steps:
|
|||
image: woodpeckerci/plugin-docker-buildx
|
||||
settings:
|
||||
repo: git.gnous.eu/${CI_REPO_OWNER}/plakken
|
||||
dockerfile: docker/Dockerfile
|
||||
dockerfile: deployement/docker/Dockerfile
|
||||
platforms: linux/amd64,linux/arm64/v8,linux/arm
|
||||
registry: https://git.gnous.eu
|
||||
tag: ${CI_COMMIT}
|
||||
|
@ -18,7 +18,7 @@ steps:
|
|||
image: woodpeckerci/plugin-docker-buildx
|
||||
settings:
|
||||
repo: git.gnous.eu/${CI_REPO_OWNER}/plakken
|
||||
dockerfile: docker/Dockerfile
|
||||
dockerfile: deployement/docker/Dockerfile
|
||||
platforms: linux/amd64,linux/arm64/v8,linux/arm
|
||||
registry: https://git.gnous.eu
|
||||
tags:
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
# Build
|
||||
FROM golang:1.22 AS build
|
||||
LABEL authors="gnousEU"
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
|
||||
COPY main.go ./
|
||||
COPY internal/ ./internal
|
||||
COPY static/ ./static
|
||||
COPY templates/ ./templates
|
||||
COPY main.go ./
|
||||
COPY internal/ ./internal
|
||||
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags "-w -s" # Enable static binary, target Linux, remove debug information and strip binary
|
||||
# Enable static binary, target Linux, remove debug information and strip binary
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags "-w -s"
|
||||
|
||||
# Copy to our image
|
||||
FROM gcr.io/distroless/static-debian12:nonroot
|
||||
|
@ -25,4 +25,4 @@ ENV PLAKKEN_LISTEN ":3000"
|
|||
|
||||
EXPOSE 3000/tcp
|
||||
|
||||
ENTRYPOINT ["/app/plakken"]
|
||||
ENTRYPOINT ["/app/plakken"]
|
|
@ -28,4 +28,4 @@ services:
|
|||
healthcheck:
|
||||
test: [ "CMD", "redis-cli", "ping" ]
|
||||
networks:
|
||||
- plakken
|
||||
- plakken
|
|
@ -33,4 +33,4 @@ services:
|
|||
networks:
|
||||
- plakken
|
||||
volumes:
|
||||
- redis:/data
|
||||
- redis:/data
|
Loading…
Reference in a new issue