We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0310d5 commit 7cd85b0Copy full SHA for 7cd85b0
2 files changed
.dockerignore
@@ -1,3 +1,5 @@
1
+.dockerignore
2
+Dockerfile
3
node_modules/*
4
dist/*
5
tmp/*
Dockerfile
@@ -2,15 +2,15 @@
# Build with: docker build -t $USER/angular2:$(git rev-list -n 1 HEAD) .
FROM node:5.7.1
MAINTAINER Alex Eagle
+WORKDIR /home
6
7
# Copy the minimal file to create a node_modules directory.
8
# This takes advantage of docker's caching, so that the npm install
9
# is only re-run when the npm-shrinkwrap.json was modified.
-COPY npm-shrinkwrap.json /home/
10
-WORKDIR /home
+COPY npm-shrinkwrap.json .
11
RUN npm install --no-progress
12
13
-COPY . /home/
+COPY . .
14
15
# Allow the build to run as root. In a long-lived docker container,
16
# this is a security vulnerability, but we don't have a CMD so our
0 commit comments