From 393812210a67caba3e9f8098ff6d1e11c9815614 Mon Sep 17 00:00:00 2001 From: Daddy32 Date: Mon, 5 Jan 2026 09:49:08 +0100 Subject: [PATCH] Add Docker deployment files --- Dockerfile | 6 ++++++ captain-definition | 4 ++++ scripts/build.sh | 4 ++++ scripts/run.sh | 4 ++++ 4 files changed, 18 insertions(+) create mode 100644 Dockerfile create mode 100644 captain-definition create mode 100644 scripts/build.sh create mode 100644 scripts/run.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e192472 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM nginx:alpine + +COPY index.html /usr/share/nginx/html/index.html +COPY styles.css /usr/share/nginx/html/styles.css +COPY assets /usr/share/nginx/html/assets +COPY src /usr/share/nginx/html/src diff --git a/captain-definition b/captain-definition new file mode 100644 index 0000000..0e14f82 --- /dev/null +++ b/captain-definition @@ -0,0 +1,4 @@ +{ + "schemaVersion": 2, + "dockerfilePath": "./Dockerfile" +} diff --git a/scripts/build.sh b/scripts/build.sh new file mode 100644 index 0000000..703e6d6 --- /dev/null +++ b/scripts/build.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +set -euo pipefail + +sudo docker build -t physilinks . diff --git a/scripts/run.sh b/scripts/run.sh new file mode 100644 index 0000000..473bf0a --- /dev/null +++ b/scripts/run.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +set -euo pipefail + +sudo docker run --rm -p 8080:80 physilinks