From 489a7518c3313ee223019b509a1ac8e6793259e4 Mon Sep 17 00:00:00 2001 From: LoveIsGrief Date: Tue, 14 Jan 2020 01:09:39 +0100 Subject: [PATCH] Attempt to reduce size a bit more - Ignore the cruft when building - Remove the correct temporary directory #32 - Docker image --- .dockerignore | 4 ++++ Dockerfile | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..97bba075 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,4 @@ +.gradle/ +.idea/ +.git/ +Dockerfile diff --git a/Dockerfile b/Dockerfile index c07a2caa..c4662f00 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,12 +5,13 @@ ARG DOCKER_IMAGE_VERSION=unknown # JDK version ARG JDK=9 -ARG TMP_DIR=muwire-tmp +# Important directories +ARG TMP_DIR=/muwire-tmp ENV APP_HOME=/muwire # Define working directory. -WORKDIR /$TMP_DIR +WORKDIR $TMP_DIR # Put sources into dir COPY . .