# TODO: switch to uniworx registry debian image
FROM debian:12.5

RUN apt-get -y update

# Basic dependencies
RUN apt-get -y install curl npm

# Build and watch dependencies
RUN apt-get -y install exiftool

# Test dependencies
RUN apt-get -y install chromium
ENV CHROME_BIN=chromium

# TODO: pin nodejs/npm version
# RUN npm install -g n
# RUN n 14.19.1

WORKDIR /fradrive

ENV HOME=/fradrive

ENV FRADRIVE_MAKE_TARGET=frontend-watch
ENTRYPOINT make -- ${FRADRIVE_MAKE_TARGET}