-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile
37 lines (26 loc) · 918 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
###################################################################################
# Dockerfile to build a Polymer Dev Environment container images with Polymer-CLI
# Based on node:slim
#
# To build, do:
# $ docker build -t jefferyb/polymer-cli .
#
###################################################################################
# Set the base image to node:slim
FROM node:slim
MAINTAINER Jeffery Bagirimvano <[email protected]>
ENV POLYMER_CLI_HOME /home/polymer
ARG user=polymer
ARG group=polymer
RUN useradd -d "$POLYMER_CLI_HOME" -U -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 --unsafe-perm
RUN npm install -g generator-polymer-init-custom-build
USER ${user}
EXPOSE 8081
RUN mkdir -p /home/${user}/app
VOLUME /home/${user}/app
WORKDIR /home/${user}/app
CMD bash