Last active
September 10, 2017 01:25
-
-
Save alefhsousa/1cdd70e2c19cdb833c1cd51352b1a905 to your computer and use it in GitHub Desktop.
dockerfile-freeboard-without-multi-stage-build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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