diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-03-11 22:15:46 +0500 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-03-11 22:15:46 +0500 |
commit | b4d81211fbb9f36b1dfd75843d3c065486804d3e (patch) | |
tree | cc28bc45969e15e907e60eb08c82ac4672b88d90 | |
parent | add index.html (diff) | |
download | void-b4d81211fbb9f36b1dfd75843d3c065486804d3e.tar.gz void-b4d81211fbb9f36b1dfd75843d3c065486804d3e.zip |
add Dockerfile
-rw-r--r-- | .dockerignore | 5 | ||||
-rw-r--r-- | Dockerfile | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..cb61aa2 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +* + +!app.py +!index.html +!server.py diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d79cd92 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM alpine:3.15 + +RUN apk add --no-cache python3 tini +RUN mkdir -p /var/lib/void + +COPY [".", "/usr/src/"] +WORKDIR /usr/src + +ENTRYPOINT ["/sbin/tini", "--"] +CMD ./server.py --void /var/lib/void/void.state |