Skip to content

Instantly share code, notes, and snippets.

@alefhsousa
Last active September 10, 2017 01:25
Show Gist options
  • Save alefhsousa/1cdd70e2c19cdb833c1cd51352b1a905 to your computer and use it in GitHub Desktop.
Save alefhsousa/1cdd70e2c19cdb833c1cd51352b1a905 to your computer and use it in GitHub Desktop.
dockerfile-freeboard-without-multi-stage-build
FROM nginx:1.12-alpine
RUN apk update && \
apk upgrade && \
apk add nodejs git
WORKDIR /app
RUN chmod 777 -R /app
RUN git clone https://github.com/Freeboard/freeboard.git
RUN cd /app/freeboard && npm install -g
RUN cp -r freeboard/css/ freeboard/js/ freeboard/plugins/ freeboard/img/ freeboard/index.html /usr/share/nginx/html/
RUN rm -rf /app/*
EXPOSE 80
RUN chown nginx.nginx /usr/share/nginx/html/ -R
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment