29 lines
858 B
Docker
29 lines
858 B
Docker
ARG FROM_IMG=docker.io/library/node
|
|
ARG FROM_TAG=20
|
|
|
|
FROM ${FROM_IMG}:${FROM_TAG}
|
|
|
|
ENV LANG=de_DE.UTF-8
|
|
ENV LANGUAGE=de_DE.UTF-8
|
|
|
|
# build and watch dependencies
|
|
RUN apt-get -y update && apt-get -y install exiftool
|
|
RUN apt-get -y update && apt-get -y install imagemagick
|
|
|
|
# test dependencies
|
|
# RUN apt-get -y update && apt-get -y install chromium
|
|
# ENV CHROME_BIN=chromium
|
|
|
|
# configure npm to use given proxy if specified
|
|
RUN if [ ! -z "${HTTP_PROXY}" ]; then npm config set proxy ${HTTP_PROXY}; fi
|
|
RUN if [ ! -z "${FRAPORT_NOPROXY}" ]; then npm config set noproxy "${FRAPORT_NOPROXY}"; fi
|
|
ENV NODE_EXTRA_CA_CERTS="/etc/ssl/certs/ca-certificates.crt"
|
|
|
|
ENV PROJECT_DIR=/fradrive
|
|
RUN mkdir -p ${PROJECT_DIR}
|
|
WORKDIR ${PROJECT_DIR}
|
|
ENV HOME=${PROJECT_DIR}
|
|
|
|
RUN if [ ! -z "${NPM_CUSTOM_REGISTRY}" ]; then \
|
|
printf 'registry=${NPM_CUSTOM_REGISTRY}' > .npmrc \
|
|
; fi |