Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
Dockerfile 433 B
FROM node:lts
ENV ENV_FILE_PATH=${ENV_FILE_PATH:-'/etc/run_config/.env'}

LABEL maintainer="dmendez@ebi.ac.uk"

ENV APP_SOURCE /usr/src/eubopen-web

RUN mkdir -p ${APP_SOURCE}
WORKDIR ${APP_SOURCE}

RUN apt-get update -qq -y && \
    apt-get upgrade -qq -y && \
    apt-get install -qq -y git

COPY . ${APP_SOURCE}

RUN npm install

ENV HOST 0.0.0.0

EXPOSE 3000

ENTRYPOINT ENV_FILE_PATH=${ENV_FILE_PATH} npm run build && npm start