diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..df7567d --- /dev/null +++ b/.dockerignore @@ -0,0 +1,13 @@ +.git +.gitignore +.codegraph +CLAUDE.md +CNAME +LICENSE +README.md +Dockerfile +compose.yaml +podman-compose.yaml +.dockerignore +.env +.env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..dd278e2 --- /dev/null +++ b/.env.example @@ -0,0 +1,4 @@ +# Container settings +CONTAINER_NAME=bumpmesh +HOST_PORT=8080 +CONTAINER_PORT=80 diff --git a/.gitignore b/.gitignore index ee88966..bf1f8ed 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ assets/ +.env +.codegraph \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f3efec6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM nginx:alpine + +COPY index.html /usr/share/nginx/html/ +COPY style.css /usr/share/nginx/html/ +COPY logo.png /usr/share/nginx/html/ +COPY js/ /usr/share/nginx/html/js/ +COPY textures/ /usr/share/nginx/html/textures/ +COPY assets/ /usr/share/nginx/html/assets/ + +EXPOSE 80 diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..8c7122c --- /dev/null +++ b/compose.yaml @@ -0,0 +1,10 @@ +services: + bumpmesh: + container_name: ${CONTAINER_NAME:-bumpmesh} + build: . + image: bumpmesh:latest + ports: + - "${HOST_PORT:-8080}:${CONTAINER_PORT:-80}" + restart: unless-stopped + env_file: + - .env diff --git a/podman-compose.yaml b/podman-compose.yaml new file mode 100644 index 0000000..8c7122c --- /dev/null +++ b/podman-compose.yaml @@ -0,0 +1,10 @@ +services: + bumpmesh: + container_name: ${CONTAINER_NAME:-bumpmesh} + build: . + image: bumpmesh:latest + ports: + - "${HOST_PORT:-8080}:${CONTAINER_PORT:-80}" + restart: unless-stopped + env_file: + - .env