diff --git a/Dockerfile b/Dockerfile index 3f263e3..df36636 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,13 @@ FROM debian:latest -ARG BUILD_NBR=$BUILD_NBR -ARG BRANCH_NAME=$BRANCH_NAME +ARG BUILD_NBR=${BUILD_NUMBER} +ARG BRANCH_NAME=${BRANCH_NAME} RUN apt-get update RUN apt-get -y upgrade RUN apt-get -y install openjdk-8-jre openjdk-8-jdk curl wget WORKDIR /bot_src -ADD DownloadLast.sh ${BRANCH_NAME} ${BUILD_NBR} /bot_src/ +ADD DownloadLast.sh /bot_src/ RUN chmod +x DownloadLast.sh -RUN ./DownloadLast.sh +RUN ./DownloadLast.sh ${BRANCH_NAME} ${BUILD_NBR} ENV PORT=8080 ENV TOKEN=10 CMD java -jar bot.jar -t ${TOKEN}