From 0baa63eb45fbc509519033c016140bce0087a8bf Mon Sep 17 00:00:00 2001 From: get Date: Tue, 30 Jan 2024 11:02:33 -0500 Subject: [PATCH] Add Docker files --- Dockerfile | 24 ++++++++++++++++++++++++ docker-compose.yml | 7 +++++++ 2 files changed, 31 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..89ec57e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +## To build the image, run: +## docker build -t fluxnodes.net . + +## To run the image, run: +## docker run -d -p 2000:2000 fluxnodes.net + +# Base (Debian) +FROM debian + +# Set Work Directory +WORKDIR /fluxnodes +COPY . /fluxnodes + +# Expose Ports +EXPOSE 2000 + +# Install Bun +curl -fsSL https://bun.sh/install | bash + +# Install Packages +bun install + +# Run +CMD bun start \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..8beb1c9 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,7 @@ +version: "3" +services: + falixnodes.net: + image: falixnodes.net + restart: unless-stopped + ports: + - "4321:4321" \ No newline at end of file