forked from thecodingmachine/docker-images-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.node.cli
20 lines (17 loc) · 1.13 KB
/
Dockerfile.node.cli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# DO NOT EDIT THIS FILE : Make yours changes in /utils/Dockerfile.*.blueprint)
ARG PHP_VERSION
ARG GLOBAL_VERSION
ARG OWNER
FROM ${OWNER}/php:${PHP_VERSION}-${GLOBAL_VERSION}-cli-${TARGETARCH}
LABEL authors="Julien Neuhart <[email protected]>, David Négrier <[email protected]>"
ARG NODE_VERSION
ENV NODE_VERSION=$NODE_VERSION
RUN sudo mkdir -p /etc/apt/keyrings && \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_${NODE_VERSION}.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list && \
curl -fsSL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/keyrings/yarn.gpg && \
echo "deb [signed-by=/etc/apt/keyrings/yarn.gpg] https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list && \
sudo apt update && \
sudo apt install -y --no-install-recommends nodejs yarn && \
sudo apt clean && \
sudo rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*;