Dockerfile 484 Bytes
Newer Older
David Mendez's avatar
David Mendez committed
1
FROM node:lts
David Mendez's avatar
David Mendez committed
2
ENV ENV_FILE_PATH=${ENV_FILE_PATH:-'/etc/run_config/.env'}
David Mendez's avatar
David Mendez committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25

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

ENV APP_SOURCE /usr/src/malaria

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

ARG DELAYED_JOBS_API
ENV DELAYED_JOBS_API $DELAYED_JOBS_API

RUN npm install && npm run build

ENV HOST 0.0.0.0

EXPOSE 3000

David Mendez's avatar
David Mendez committed
26
ENTRYPOINT ENV_FILE_PATH=${ENV_FILE_PATH} npm start