From 1cabc452b5a8b212f98a6a890b11ee5bc89a6755 Mon Sep 17 00:00:00 2001 From: Agent001 Date: Fri, 20 Sep 2024 10:51:41 +0000 Subject: [PATCH 1/3] Add vercel.json for Vercel deployment --- vercel.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 vercel.json diff --git a/vercel.json b/vercel.json new file mode 100644 index 000000000..d7b2d6886 --- /dev/null +++ b/vercel.json @@ -0,0 +1 @@ +{ "version": 2, "builds": [ { "src": "startYACY.sh", "use": "@vercel/static" } ], "routes": [ { "src": "/(.*)", "dest": "startYACY.sh" } ] } From 7b108dadf77b0e2734570b872ea132b26b4dc474 Mon Sep 17 00:00:00 2001 From: Agent001 Date: Fri, 20 Sep 2024 11:40:05 +0000 Subject: [PATCH 2/3] Update vercel.json for correct deployment --- vercel.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vercel.json b/vercel.json index d7b2d6886..d96bdbfc1 100644 --- a/vercel.json +++ b/vercel.json @@ -1 +1 @@ -{ "version": 2, "builds": [ { "src": "startYACY.sh", "use": "@vercel/static" } ], "routes": [ { "src": "/(.*)", "dest": "startYACY.sh" } ] } +{ "version": 2, "builds": [ { "src": "startYACY.sh", "use": "@vercel/static-build", "config": { "distDir": "public" } } ], "routes": [ { "src": "/(.*)", "dest": "/startYACY.sh" } ] } From 0fb77994aadacd11e48b6e5a9375c3583a287016 Mon Sep 17 00:00:00 2001 From: Agent001 Date: Fri, 20 Sep 2024 11:51:47 +0000 Subject: [PATCH 3/3] Add Dockerfile for YaCy deployment --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..d484eda57 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM openjdk:8-jdk-alpine + +# Set working directory +WORKDIR /yacy + +# Copy the project files +COPY . . + +# Expose YaCy port +EXPOSE 8090 + +# Start YaCy +CMD ["sh", "startYACY.sh"]