From cdf61f3e64a315780cc648210c46c9ec79dbc26c Mon Sep 17 00:00:00 2001 From: Rub21 Date: Tue, 6 Feb 2024 08:43:22 -0500 Subject: [PATCH] Update osmcha frontend container --- images/osmcha-web/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/images/osmcha-web/Dockerfile b/images/osmcha-web/Dockerfile index 9b5f4181..04867f44 100644 --- a/images/osmcha-web/Dockerfile +++ b/images/osmcha-web/Dockerfile @@ -2,10 +2,12 @@ FROM node:16-slim as builder ENV DEBIAN_FRONTEND noninteractive ENV BUILD_ENV=prod ENV REACT_APP_PRODUCTION_API_URL=/api/v1 -RUN apt-get update && apt-get install -y git +RUN apt-get update && apt-get install -y git \ + && rm -rf /var/lib/apt/lists/* RUN mkdir /app WORKDIR /app -RUN git clone https://github.com/osmus/osmcha-frontend.git /app +ARG GIT_TAG=master +RUN git clone --branch $GIT_TAG https://github.com/osmus/osmcha-frontend.git /app RUN yarn install COPY start.sh . CMD [ "/app/start.sh" ]