forked from fossasia/susper.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (21 loc) · 648 Bytes
/
Dockerfile
File metadata and controls
29 lines (21 loc) · 648 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
27
28
29
FROM node:8
MAINTAINER Mario Behling <mb@mariobehling.de>
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
RUN apt-get update && apt-get clean && rm -rf /var/lib/apt/lists/*
# install deps
RUN apt-get install curl
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash
RUN apt-get install -y --no-install-recommends nodejs && apt-get clean -y
# copy requirements
COPY package.json /usr/src/app/
COPY app.json /usr/src/app/
COPY tslint.json /usr/src/app/
COPY angular-cli.json /usr/src/app/
# Bundle app source
COPY . /usr/src/app
# install requirements
RUN npm install -g @angular/cli@latest
RUN npm install
EXPOSE 4200
CMD ["ng", "serve"]