diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..755da63 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM ubuntu:22.04 +RUN apt update && apt upgrade -y && apt install python3 -y +WORKDIR /srv +COPY ./* ./ +CMD ["python3", "-m", "http.server", "5000"] diff --git a/README.md b/README.md index 6541beb..986359f 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,13 @@ Installation ---- Just open `index.html` and that's it! There is no server code. Is that so simple? Yes! +Alternative Installation, using Docker, for server deployment +---- +- Clone the repository at your desired location +- Run `docker compose build` for building the container +- Run `docker compose up -d` for running the container +- Go to `http://127.0.0.1:9500` to use it! + Usage ---- diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..ff0b8c2 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,7 @@ +version: "3" +services: + web: + build: . + ports: + - "9500:5000" + restart: unless-stopped \ No newline at end of file