From c205ca5a7f147410b8ae0910bd921308f0bd105e Mon Sep 17 00:00:00 2001 From: Denisas Date: Fri, 22 Jul 2022 13:19:41 +0300 Subject: [PATCH] bug fix (#60) --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0c26e911..63a94ab9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ FROM openjdk:11-jre-slim-stretch as server ARG SPARK_VERSION=3.3.0 +ARG HADOOP_VERSION=3 WORKDIR /home/app/ COPY server/ ./server/ @@ -25,6 +26,7 @@ RUN yarn install && yarn build FROM openjdk:11-jre-slim-stretch ARG SPARK_VERSION=3.3.0 +ARG HADOOP_VERSION=3 ENV FRONTEND_PATH=/home/app/frontend/ ENV SPARK_HOME=/home/app/spark/ @@ -39,7 +41,7 @@ COPY --from=server /home/app/server/build/docker/main/layers/resources /home/app COPY --from=server /home/app/server/build/docker/main/layers/application.jar /home/app/application.jar COPY --from=frontend /home/app/frontend/build/ ./frontend/ -COPY --from=frontend /home/app/spark-${SPARK_VERSION}-bin-hadoop3.2/ ./spark/ +COPY --from=frontend /home/app/spark-${SPARK_VERSION}-bin-hadoop${HADOOP_VERSION}/ ./spark/ COPY k8s/ ./k8s/