-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile-Base
31 lines (20 loc) · 970 Bytes
/
Dockerfile-Base
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
30
31
# Build initial image
ARG IMAGE_NODE_ALPINE_VERSION=node:14-alpine3.15
FROM ${IMAGE_NODE_ALPINE_VERSION} as builder
LABEL maintainer="Renato Gomes <[email protected]>"
RUN /bin/sh -c "apk add --no-cache bash" && \
apk update && apk add curl wget git vim htop python3 openssh py3-pip busybox-extras figlet build-base && \
npm install -g @angular/[email protected]
SHELL ["/bin/bash", "-c"]
WORKDIR /APP
# Build final image
FROM ${IMAGE_NODE_ALPINE_VERSION} as runner
LABEL maintainer="Renato Gomes <[email protected]>"
COPY --from=builder /usr/lib /usr/lib
COPY --from=builder /usr/local/share /usr/local/share
COPY --from=builder /usr/local/lib /usr/local/lib
COPY --from=builder /usr/local/include /usr/local/include
COPY --from=builder /usr/local/bin /usr/local/bin
RUN apk add git && /bin/sh -c "apk add --no-cache bash" && mkdir -p /APP && echo 'figlet -t "Lapig Docker NTVI"' >> ~/.bashrc
SHELL ["/bin/bash", "-c"]
WORKDIR /APP