-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (17 loc) · 723 Bytes
/
Dockerfile
File metadata and controls
23 lines (17 loc) · 723 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 node:18.18.0-alpine
LABEL authors="Alejandro Such <alejandro.such@gmail.com> , Mihai Bob <mihai.m.bob@gmail.com>, Dinei A. Rockenbach <dineiar@gmail.com>"
ARG ANGULAR_CLI_VERSION=latest
ENV NG_CLI_ANALYTICS=false
RUN apk update \
&& apk add --update alpine-sdk python3 \
&& yarn global add @angular/cli@$ANGULAR_CLI_VERSION \
&& ng config --global cli.packageManager yarn \
&& apk del alpine-sdk python3 \
&& rm -rf /tmp/* /var/cache/apk/* *.tar.gz ~/.npm \
&& npm cache clean --force \
&& yarn cache clean \
&& sed -i -e "s/bin\/ash/bin\/sh/" /etc/passwd
EXPOSE 4200
# Replaces default node entrypoint to allow/force "ng" command by default
COPY docker-entrypoint.sh /usr/local/bin/
CMD [ "ng" ]