OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/docker/dev/frontend/Dockerfile

33 lines
833 B

FROM node:14.17
MAINTAINER operations@openproject.com
ARG DEV_UID=1000
ARG DEV_GID=1001
ENV USER=dev
RUN apt-get update && apt-get install -y chromium
RUN npm i -g npm
# `--no-log-init` is required as a workaround to avoid disk exhaustion.
#
# Read more at:
# * https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#user
# * https://github.com/golang/go/issues/13548
RUN useradd --no-log-init -d /home/$USER -m $USER -g node || true
RUN usermod -u $DEV_UID $USER || true
RUN groupadd $USER || true
RUN groupmod -g $DEV_GID $USER || true
EXPOSE 4200
RUN mkdir -p /home/$USER/openproject/public/assets/frontend
RUN chown $USER:$USER -R /home/$USER/openproject/public
VOLUME ["/home/$USER/openproject", "/home/$USER/openproject/public/assets/frontend"]
WORKDIR /home/$USER/openproject/frontend
USER $USER