From 513fc14c5c0fb80e4f3360ddd38ef5bba89552af Mon Sep 17 00:00:00 2001 From: Giovanni Date: Sun, 4 Oct 2026 13:17:17 +0200 Subject: [PATCH] containerize the project for deployment --- Dockerfile | 3 +++ {assets => app/assets}/css/stars.css | 0 {assets => app/assets}/css/style.css | 0 {assets => app/assets}/images/background.jpg | Bin {assets => app/assets}/images/gitea.png | Bin {assets => app/assets}/images/github.png | Bin {assets => app/assets}/images/logo.svg | 0 index.html => app/index.html | 0 docker-compose.yml | 7 +++++++ 9 files changed, 10 insertions(+) create mode 100644 Dockerfile rename {assets => app/assets}/css/stars.css (100%) rename {assets => app/assets}/css/style.css (100%) rename {assets => app/assets}/images/background.jpg (100%) rename {assets => app/assets}/images/gitea.png (100%) rename {assets => app/assets}/images/github.png (100%) rename {assets => app/assets}/images/logo.svg (100%) rename index.html => app/index.html (100%) create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..852f75d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM busybox:latest +COPY app/ /site +CMD ["sh", "-c", "cp -rf /site/* /out/"] \ No newline at end of file diff --git a/assets/css/stars.css b/app/assets/css/stars.css similarity index 100% rename from assets/css/stars.css rename to app/assets/css/stars.css diff --git a/assets/css/style.css b/app/assets/css/style.css similarity index 100% rename from assets/css/style.css rename to app/assets/css/style.css diff --git a/assets/images/background.jpg b/app/assets/images/background.jpg similarity index 100% rename from assets/images/background.jpg rename to app/assets/images/background.jpg diff --git a/assets/images/gitea.png b/app/assets/images/gitea.png similarity index 100% rename from assets/images/gitea.png rename to app/assets/images/gitea.png diff --git a/assets/images/github.png b/app/assets/images/github.png similarity index 100% rename from assets/images/github.png rename to app/assets/images/github.png diff --git a/assets/images/logo.svg b/app/assets/images/logo.svg similarity index 100% rename from assets/images/logo.svg rename to app/assets/images/logo.svg diff --git a/index.html b/app/index.html similarity index 100% rename from index.html rename to app/index.html diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..44da31d --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,7 @@ +version: '3.8' + +services: + deploy-site: + build: . + volumes: + - /srv/nginx/sites/linktree:/out \ No newline at end of file