Commit 461a87be authored by Antoine Roux's avatar Antoine Roux 🦊

Rebuild the project each time the container starts (in order to take the config in account)

parent 7cd63dad
......@@ -2,13 +2,16 @@ FROM node:alpine
ENV NODE_ENV production
WORKDIR /edataportal
COPY . /edataportal
RUN apk --no-cache add --virtual build-dependencies git \
RUN apk --no-cache add git \
&& npm install \
&& apk del build-dependencies
&& npm install -g serve
WORKDIR /edataportal
ENTRYPOINT ["/bin/sh", "/edataportal/entrypoint"]
CMD ["serve", "-s", "build"]
CMD ["npm", "start"]
HEALTHCHECK --start-period=60s --timeout=5s --retries=1 CMD /edataportal/healthcheck
npm run build
exec $@
wget --spider -Sq http://localhost:5000 2> /dev/null | head -n1 | grep -Fq '200 OK' || exit 1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment