From 2c81078e772304d754a6773f3dc56c3ba0ebed19 Mon Sep 17 00:00:00 2001 From: Logen <79722764+btcforplebs@users.noreply.github.com> Date: Tue, 28 Oct 2025 09:19:25 -0400 Subject: [PATCH] docker --- Dockerfile | 18 ++++++++++++++++++ checklinks.js | 1 + docker-compose.yml | 11 +++++++++++ public/index.html | 3 ++- 4 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..12be77b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +# Use an official lightweight Node image +FROM node:20-alpine + +# Set the working directory inside the container +WORKDIR /app + +# Copy package files and install dependencies +COPY package*.json ./ +RUN npm install + +# Copy the rest of the project files +COPY . . + +# Expose the port your app uses +EXPOSE 9000 + +# Default command to start your site +CMD ["npm", "run", "both"] \ No newline at end of file diff --git a/checklinks.js b/checklinks.js index 0a86015..c6af85c 100644 --- a/checklinks.js +++ b/checklinks.js @@ -14,6 +14,7 @@ const links = [ "https://nosotros.btcforplebs.com", "https://mint.btcforplebs.com", "https://cashu.btcforplebs.com", + "https://shipyard.btcforplebs.com", "https://live.btcforplebs.com", "https://nsec.btcforplebs.com", "https://flotilla.btcforplebs.com", diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..0322efe --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +version: "3.8" + +services: + web: + build: . + ports: + - "9000:9000" + volumes: + - .:/app + restart: always + command: npm run both \ No newline at end of file diff --git a/public/index.html b/public/index.html index d59f384..06b77df 100644 --- a/public/index.html +++ b/public/index.html @@ -53,11 +53,12 @@