Public | Automated Build

Last pushed: 2 years ago
Dockerfile
################################################################################### # Dockerfile to build a Polymer-CLI, Go and firebase Dev Environment container # # Based on node:4-slim # # # # To build, do: # # $ docker build -t xn0px90/docker-go-polymer-firebase # # To pull do: # # $ docker pull xn0px90/docker-go-polymer-firebase # ################################################################################### # Set the base image to node:4-slim FROM node:4-slim MAINTAINER xn0px90 <xn0px90@gmail.com> ENV POLYMER_CLI_HOME /home/polymer ARG user=polymer ARG group=polymer ARG uid=1000 ARG gid=1000 RUN groupadd -g ${gid} ${group} \ && useradd -d "$POLYMER_CLI_HOME" -u ${uid} -g ${gid} -m -s /bin/bash ${user} RUN apt-get update && \ apt-get install -y --no-install-recommends git && \ apt-get clean && \ npm install -g gulp bower polymer-cli generator-polymer-init-custom-build firebase-tools # Clean up APT when done. RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* USER ${user} EXPOSE 8080 RUN mkdir -p /home/${user}/app VOLUME /home/${user}/app WORKDIR /home/${user}/app CMD bash
Source Repository