Skip to content

Instantly share code, notes, and snippets.

@vivekteega
Created April 30, 2021 11:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vivekteega/84518f85cff05dbc891ca70013c97983 to your computer and use it in GitHub Desktop.
Save vivekteega/84518f85cff05dbc891ca70013c97983 to your computer and use it in GitHub Desktop.
Changed Flosight docker file
FROM node:10-stretch-slim
# Install Dependencies
RUN apt-get update && \
apt-get install --no-install-recommends -y build-essential git libzmq3-dev python nginx curl && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update
RUN apt-get install ca-certificates -y
RUN update-ca-certificates
# Install flosights
WORKDIR /flosight
RUN git clone https://github.com/ranchimall/flocore-node
ADD https://api.github.com/repos/oipwg/flosight-ui/git/refs/heads/master flosight-ui-version.json
ADD https://api.github.com/repos/oipwg/flosight-api/git/refs/heads/master flosight-api-version.json
RUN npm install flocore-node/
RUN npm install flosight-ui flosight-api
# Setup Nginx
RUN service nginx stop && rm /etc/nginx/nginx.conf
WORKDIR /etc/nginx
COPY nginx.conf .
RUN service nginx start
WORKDIR /nginx
COPY http-proxy.conf .
# Add flosight configs
WORKDIR /flosight
COPY start.sh .
COPY flocore-node.json .
RUN mkdir /data
# Expose used ports
EXPOSE 80 443 3001 7312 7313 17312 17313 17413 41289
RUN ["chmod", "+x", "/flosight/start.sh"]
HEALTHCHECK CMD curl --fail http://localhost:3001/api/sync || exit 1
CMD ["/flosight/start.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment