Attempt to reduce size a bit more

- Ignore the cruft when building
 - Remove the correct temporary directory

#32 - Docker image
This commit is contained in:
2020-01-14 01:09:39 +01:00
parent 3733e48bbd
commit 489a7518c3
2 changed files with 7 additions and 2 deletions

4
.dockerignore Normal file
View File

@ -0,0 +1,4 @@
.gradle/
.idea/
.git/
Dockerfile

View File

@ -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 . .