Commit 52d19679 authored by Antoine Roux's avatar Antoine Roux 🦊

Better usage of curl and fix Dockerfile

parent 0b36d73f
......@@ -3,12 +3,12 @@ FROM node:alpine
ENV NODE_ENV production
COPY . /edataportal
WORKDIR /edataportal
RUN apk --no-cache add git \
RUN apk --no-cache add git curl \
&& npm install \
&& npm install -g serve
WORKDIR /edataportal
EXPOSE 5000
ENTRYPOINT ["/bin/sh", "/edataportal/entrypoint"]
......
#!/bin/sh
wget --spider -Sq http://localhost:5000 2> /dev/null | head -n1 | grep -Fq '200 OK' || exit 1
curl -s -o /dev/null -I -w '%{http_code}' http://localhost:5000 | grep -Eq '^2[0-9]{2}' || 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