-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (31 loc) · 1.45 KB
/
Dockerfile
File metadata and controls
44 lines (31 loc) · 1.45 KB
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
38
39
40
41
42
43
44
###################################################################################
# Dockerfile to build a Polymer-CLI, Go and firebase Dev Environment container #
# Based on node:4-slim #
# #
# To build, do: #
# $ docker build -t sethbergman/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=1005
ARG gid=1005
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