From 52c95e04be972b6a7714b0cbe873a147cf4b9dda Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Sat, 5 May 2018 22:00:03 +0000 Subject: [PATCH] Tweaks to make docker image smaller --- Dockerfile.moth | 8 ++++---- tools/devel-server.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile.moth b/Dockerfile.moth index ac5b9d9..a3ece50 100644 --- a/Dockerfile.moth +++ b/Dockerfile.moth @@ -1,14 +1,14 @@ FROM neale/eris -RUN apk --no-cache add lua5.2 lua5.3 -RUN ln -s lua5.2 /usr/bin/lua - # Install MOTH. This could be less obtuse. COPY www /moth/www/ COPY bin /moth/bin/ COPY src/moth-init /moth/init RUN ln -s ../state/puzzles.json /moth/www/puzzles.json && \ - ln -s ../state/points.json /moth/www/points.json + ln -s ../state/points.json /moth/www/points.json && \ + apk --no-cache add lua5.2 lua5.3 && \ + ln -s lua5.2 /usr/bin/lua + CMD ["/moth/init"] diff --git a/tools/devel-server.py b/tools/devel-server.py index 48d2f82..14a8289 100755 --- a/tools/devel-server.py +++ b/tools/devel-server.py @@ -277,7 +277,7 @@ if __name__ == '__main__': help="Serve one page, then exit. For debugging the server." ) parser.add_argument( - '--bind', default="127.0.0.1:8080", + '--bind', default="0.0.0.0:8080", help="Bind to ip:port" ) parser.add_argument(