Dockerfile 343 Bytes
Newer Older
Antoine Roux's avatar
Antoine Roux committed
1 2 3 4 5
FROM node:alpine

ENV NODE_ENV production

COPY . /edataportal
6
WORKDIR /edataportal
Antoine Roux's avatar
Antoine Roux committed
7

8
RUN apk --no-cache add git curl \
Antoine Roux's avatar
Antoine Roux committed
9
  && npm install \
10 11 12
  && npm install -g serve

EXPOSE 5000
Antoine Roux's avatar
Antoine Roux committed
13

14 15
ENTRYPOINT ["/bin/sh", "/edataportal/entrypoint"]
CMD ["serve", "-s", "build"]
Antoine Roux's avatar
Antoine Roux committed
16

17
HEALTHCHECK --start-period=90s --timeout=5s --retries=1 CMD /edataportal/healthcheck