Add Docker files
This commit is contained in:
parent
defbea9acf
commit
0baa63eb45
2 changed files with 31 additions and 0 deletions
24
Dockerfile
Normal file
24
Dockerfile
Normal file
|
@ -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
|
7
docker-compose.yml
Normal file
7
docker-compose.yml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
version: "3"
|
||||||
|
services:
|
||||||
|
falixnodes.net:
|
||||||
|
image: falixnodes.net
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- "4321:4321"
|
Reference in a new issue