build(docker/frontend): always update apt cache before install

This commit is contained in:
Sarah Vaupel 2024-09-05 01:51:08 +02:00
parent a792bdeb2f
commit 42cc5cc4a2

View File

@ -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}