chore(docker): reintroduce ADD to frontend and backend Dockerfiles for gitlab-ci compatibility

This commit is contained in:
Sarah Vaupel 2024-08-19 00:59:56 +02:00
parent 9938cf6243
commit 22a918c5e3
2 changed files with 5 additions and 8 deletions

View File

@ -6,10 +6,11 @@ RUN apt-get -y update
RUN apt-get -y install haskell-stack git
RUN apt-get -y install alex g++ happy libghc-zlib-dev libpq-dev
ADD . /fradrive
WORKDIR /fradrive
ENV HOME=/fradrive
# ENV STACK_ROOT=/fradrive/.stack
ENV STACK_ROOT=/fradrive/.stack
ENV LANG=en_US.UTF-8
ENV FRADRIVE_MAKE_TARGET=backend-build

View File

@ -9,18 +9,14 @@ RUN apt-get -y install curl npm
# Build and watch dependencies
RUN apt-get -y install exiftool
# TODO: pin nodejs/npm version
# RUN npm install -g n
# RUN n 14.19.1
# RUN mkdir /fradrive
# VOLUME [ "/fradrive" ]
# WORKDIR /fradrive
# RUN pwd && ls -a . && make list
ADD . /fradrive
WORKDIR /fradrive
# RUN chown -R `id -u`:`id -g` "/.npm"
ENV HOME=/fradrive
ENV FRADRIVE_MAKE_TARGET=frontend-build
ENTRYPOINT make -- ${FRADRIVE_MAKE_TARGET}