From c72b396be93c6378c242c50dadcbf5b3da91f771 Mon Sep 17 00:00:00 2001 From: Emile Date: Thu, 9 Apr 2020 13:57:10 +0200 Subject: docker --- Dockerfile | 7 +++++++ README.md | 17 +++++++++++++++++ v0/.map.js.swp | Bin 16384 -> 0 bytes 3 files changed, 24 insertions(+) create mode 100644 Dockerfile delete mode 100644 v0/.map.js.swp diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a830216 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.8-alpine + +WORKDIR /code +ADD . /code + +EXPOSE 8765 +CMD ["python3", "-m", "http.server", "--directory", "v0", "8765"] diff --git a/README.md b/README.md index 6877095..dabd151 100644 --- a/README.md +++ b/README.md @@ -4,4 +4,21 @@ Copy of this project from blinry: https://github.com/blinry/map.recurse.com (might fork later and put the code into the forked repository, this is just a test) +## Docker + +Build the image: + +``` +$ docker build -t chaosdorf-map . +… +``` + +Run: + +``` +$ docker run -p 8765:8765 chaosdorf-map +``` + + + diff --git a/v0/.map.js.swp b/v0/.map.js.swp deleted file mode 100644 index b06746a..0000000 Binary files a/v0/.map.js.swp and /dev/null differ -- cgit 1.4.1