From 2cc3114b452bba0046d533d74b1527b4cbfb2491 Mon Sep 17 00:00:00 2001 From: sencha Date: Mon, 27 Oct 2025 14:43:57 +0500 Subject: [PATCH] reorganize --- go.mod => backend/go.mod | 0 go.sum => backend/go.sum | 0 main.go => backend/main.go | 0 nginx/sites-enabled/backend.local.conf | 1 - .../backend.local.conf.template} | 0 cat.png => static/cat.png | Bin sxdgdxfgdsfg | 26 ------------------ 7 files changed, 27 deletions(-) rename go.mod => backend/go.mod (100%) rename go.sum => backend/go.sum (100%) rename main.go => backend/main.go (100%) delete mode 120000 nginx/sites-enabled/backend.local.conf rename nginx/{sites-available/backend.local.conf => templates/sites-available/backend.local.conf.template} (100%) rename cat.png => static/cat.png (100%) delete mode 100644 sxdgdxfgdsfg diff --git a/go.mod b/backend/go.mod similarity index 100% rename from go.mod rename to backend/go.mod diff --git a/go.sum b/backend/go.sum similarity index 100% rename from go.sum rename to backend/go.sum diff --git a/main.go b/backend/main.go similarity index 100% rename from main.go rename to backend/main.go diff --git a/nginx/sites-enabled/backend.local.conf b/nginx/sites-enabled/backend.local.conf deleted file mode 120000 index 4684b38..0000000 --- a/nginx/sites-enabled/backend.local.conf +++ /dev/null @@ -1 +0,0 @@ -/etc/nginx/sites-available/backend.local.conf \ No newline at end of file diff --git a/nginx/sites-available/backend.local.conf b/nginx/templates/sites-available/backend.local.conf.template similarity index 100% rename from nginx/sites-available/backend.local.conf rename to nginx/templates/sites-available/backend.local.conf.template diff --git a/cat.png b/static/cat.png similarity index 100% rename from cat.png rename to static/cat.png diff --git a/sxdgdxfgdsfg b/sxdgdxfgdsfg deleted file mode 100644 index 88b3594..0000000 --- a/sxdgdxfgdsfg +++ /dev/null @@ -1,26 +0,0 @@ -FROM golang:1.25.3 AS build-stage - -WORKDIR /app - -COPY go.mod go.sum ./ - -RUN go mod download - -COPY *.go ./ - -RUN CGO_ENABLED=0 GOOS=linux go build -o /srv.bin - -from build-stage AS run-tests-stage -RUN go test -v ./ - -FROM gcr.io/distroless/base-debian11 AS build-release-stage - -WORKDIR / - -COPY --from=build-stage /srv.bin /srv.bin - -EXPOSE 8080/tcp - -USER nonroot:nonroot - -ENTRYPOINT ["/srv.bin"] \ No newline at end of file