GUACAMOLE-682: fix env variable passing

This commit is contained in:
Joern Lentes
2018-12-21 14:50:46 +01:00
parent 0f31028565
commit 95611f2d93
3 changed files with 6 additions and 3 deletions

View File

@@ -30,6 +30,8 @@ ARG TOMCAT_JRE=jre8
# Use official maven image for the build
FROM maven:3-jdk-8 AS builder
ARG BUILD_PROFILE
# Build environment variables
ENV \
BUILD_DIR=/tmp/guacamole-docker-BUILD
@@ -41,7 +43,7 @@ COPY guacamole-docker/bin/ /opt/guacamole/bin/
COPY . "$BUILD_DIR"
# Run the build itself
RUN /opt/guacamole/bin/build-guacamole.sh "$BUILD_DIR" /opt/guacamole
RUN /opt/guacamole/bin/build-guacamole.sh "$BUILD_DIR" /opt/guacamole "$BUILD_PROFILE"
# For the runtime image, we start with the official Tomcat distribution
FROM tomcat:${TOMCAT_VERSION}-${TOMCAT_JRE}