From 8aa314bdb3952043bfc6d47c84b1c4a6f62c5597 Mon Sep 17 00:00:00 2001 From: ange Date: Sat, 28 Sep 2024 23:00:18 +0700 Subject: [PATCH] feat: go backend --- Dockerfile | 4 ++-- html/about.html | 4 ++-- html/index.html | 4 ++-- html/resume.html | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 975cfad..7a81673 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ -FROM docker.io/golang:1.23 as build +FROM docker.io/golang:1.23 as app COPY src/ . RUN printf 'module yw5n\ngo 1.23' > go.mod && CGO_ENABLED=0 go build -o /app FROM scratch -COPY --from=build /app /app +COPY --from=app /app /app COPY static/ /static/ COPY html/ /html/ EXPOSE 3000 diff --git a/html/about.html b/html/about.html index 9ff6258..43bbf4c 100644 --- a/html/about.html +++ b/html/about.html @@ -9,14 +9,14 @@
diff --git a/html/index.html b/html/index.html index c0b9e9c..d5b9900 100644 --- a/html/index.html +++ b/html/index.html @@ -9,7 +9,7 @@
diff --git a/html/resume.html b/html/resume.html index e42e9c1..dccbfd4 100644 --- a/html/resume.html +++ b/html/resume.html @@ -9,7 +9,7 @@