-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.node
More file actions
22 lines (18 loc) · 863 Bytes
/
Dockerfile.node
File metadata and controls
22 lines (18 loc) · 863 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
ARG NODE_IMAGE=node:11-stretch
FROM $NODE_IMAGE
ARG NPM_VERSION=latest-7
ARG NODE_EXTRA_PACKAGES
COPY etc/apt/apt.conf.d/no-install-suggests-recommends.apt.conf /etc/apt/apt.conf.d/
RUN true \
&& apt-get update \
&& apt-get install -y gosu fontforge $NODE_EXTRA_PACKAGES \
&& find /var/lib/apt/lists /var/cache/apt/archives -type f -delete \
&& npm install -g npm@$NPM_VERSION \
&& true
COPY scripts/adjust-user scripts/adjust-term scripts/entrypoint scripts/exec /usr/local/share/container/scripts/
COPY entrypoint/node /usr/local/share/container/entrypoint/
COPY healthcheck/node-port /usr/local/share/container/healthcheck/
COPY bin/local-user bin/container-user /usr/local/share/container/bin/
ENV CONTAINER_USER node
ENV CONTAINER_GROUP node
ENTRYPOINT ["/usr/local/share/container/scripts/entrypoint", "/usr/local/share/container/entrypoint/node"]