-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile_For-CodeShip
More file actions
26 lines (18 loc) · 959 Bytes
/
Dockerfile_For-CodeShip
File metadata and controls
26 lines (18 loc) · 959 Bytes
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
FROM node:8.12
# install the Angular CLI
# assign vars for Git
RUN 'export EMAIL=codeship@codeship.com'
RUN 'export GIT_AUTHOR_NAME=CodeShip'
RUN 'export GIT_COMMITTER_NAME=CodeShip'
# install the Angular CLI, pip to /dev/null to remove analytics invocation
RUN 'sudo npm install -g @angular/cli@7.2.3 > /dev/null'
# create an appRoot directory to install into
RUN mkdir /home/codeship/appRoot
# create a new Angular project shell
RUN cd /home/codeship/appRoot && ng new angular7demo --defaults
# copy the application files from the working directory
RUN cp -r -n /home/codeship/appRoot/angular7demo/ /home/codeship/gitRoot/
# setup the application, copies generated app files to the project directory
RUN cd /home/codeship/gitRoot/angular7demo && npm install --prod && npm run setup
# perform the build into a directory called angular under the dist directory
RUN cd /home/codeship/gitRoot/angular7demo && ng build #--base-href /angular7demo/