diff --git a/frontend/Dockerfile b/frontend/Dockerfile index ef3b2e47..36393c25 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,8 +1,7 @@ FROM node:18.6.0 as build COPY ./distiller /distiller ARG REACT_APP_API_URL -ARG REACT_APP_SENTRY_DSN_URL -RUN cd /distiller && yarn && REACT_APP_API_URL=$REACT_APP_API_URL REACT_APP_SENTRY_DSN_URL=$REACT_APP_SENTRY_DSN_URL yarn build +RUN cd /distiller && yarn && REACT_APP_API_URL=$REACT_APP_API_URL yarn build FROM nginx COPY --from=build /distiller/build/ /usr/share/nginx/html diff --git a/frontend/scripts/docker_build.sh b/frontend/scripts/docker_build.sh index 67ef77a8..06ef5a01 100755 --- a/frontend/scripts/docker_build.sh +++ b/frontend/scripts/docker_build.sh @@ -2,4 +2,4 @@ TAG=`git log -1 --pretty=%h` -docker build --build-arg REACT_APP_SENTRY_DSN_URL=$REACT_APP_SENTRY_DSN_URL -t openchemistry/distiller-client:$TAG -f ../Dockerfile ../ $@ +docker build -t openchemistry/distiller-client:$TAG -f ../Dockerfile ../ $@