From 42cc5cc4a2ef2afd875a571cf5dba64d983c9ae7 Mon Sep 17 00:00:00 2001 From: Sarah Vaupel Date: Thu, 5 Sep 2024 01:51:08 +0200 Subject: [PATCH] build(docker/frontend): always update apt cache before install --- docker/frontend/Dockerfile | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/docker/frontend/Dockerfile b/docker/frontend/Dockerfile index 1ee407ee3..e31248427 100644 --- a/docker/frontend/Dockerfile +++ b/docker/frontend/Dockerfile @@ -1,16 +1,14 @@ # TODO: switch to uniworx registry debian image -FROM debian:12.5 - -RUN apt-get -y update +FROM registry.uniworx.de/uniworx/containers/debian:12.5 # Basic dependencies -RUN apt-get -y install curl npm +RUN apt-get -y update && apt-get -y install curl npm # Build and watch dependencies -RUN apt-get -y install exiftool +RUN apt-get -y update && apt-get -y install exiftool # Test dependencies -RUN apt-get -y install chromium +RUN apt-get -y update && apt-get -y install chromium ENV CHROME_BIN=chromium # TODO: use dotenv for npm version? @@ -19,7 +17,7 @@ RUN n 20.17.0 ARG PROJECT_DIR=/fradrive RUN mkdir -p ${PROJECT_DIR} -RUN cp -r /tmp/${PROJECT_DIR}/* ${PROJECT_DIR} +RUN cp -r /tmp${PROJECT_DIR}/* ${PROJECT_DIR} WORKDIR ${PROJECT_DIR} ENV HOME=${PROJECT_DIR}