-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (22 loc) · 738 Bytes
/
Copy pathDockerfile
File metadata and controls
23 lines (22 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM ubuntu:20.04
ARG NODE_VERSION=12
RUN DEBIAN_FRONTEND=noninteractive apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends apt-utils dialog 2>&1 \
curl \
ca-certificates \
git \
vim \
iproute2 \
#
# install node
&& curl -sL https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash - \
&& apt-get install -y nodejs \
#
# install angular
&& npm install -g @angular/cli \
&& mkdir -p /home/app
COPY . /home/app
RUN cd /home && ng new app --defaults=true --force=true
WORKDIR /home/app
EXPOSE 4200
CMD ["/bin/bash"]