diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..50e2459 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +FROM debian:bookworm-slim + +# Install CA certificates for HTTPS/SSL +RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/* + +# Keep the binary in /app +WORKDIR /app + +# Copy your downloaded binary +COPY tinyice-linux-amd64 ./tinyice + +# Make sure it's executable +RUN chmod +x ./tinyice + +# Create the config folder inside /app +RUN mkdir -p /app/config + +# TinyIce default port +EXPOSE 8000 + +# Run the app +CMD ["./tinyice", "-host", "0.0.0.0", "-config", "/app/config/tinyice.json"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..b072ce6 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +version: '3.8' + +services: + tinyice: + image: git.smartcraft.me/minster586/tinyice:latest + container_name: tinyice + ports: + - "8000:8000" # You can change the left hand side for the port Just leave the righthand side alone + volumes: + - /host/path/to/the/config:/app/config # You can change the Left hand side of ":" Marker + restart: unless-stopped \ No newline at end of file diff --git a/tinyice-linux-amd64 b/tinyice-linux-amd64 new file mode 100644 index 0000000..bb7c007 Binary files /dev/null and b/tinyice-linux-amd64 differ