-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDockerfile
More file actions
10 lines (9 loc) · 573 Bytes
/
Dockerfile
File metadata and controls
10 lines (9 loc) · 573 Bytes
1
2
3
4
5
6
7
8
9
10
FROM nginx:alpine
LABEL maintainer="Xin Hu <hoosin.git@gmail.com>"
# Install nvm with node and npm
RUN apk add --no-cache --repository http://nl.alpinelinux.org/alpine/edge/main libuv \
&& apk add --no-cache --update-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/main nodejs=18.18.2-r1 npm=10.2.4-r0 \
&& apk add --no-cache --update-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community yarn=1.22.19-r0 \
&& echo "NodeJS Version:" "$(node -v)" \
&& echo "NPM Version:" "$(npm -v)" \
&& echo "Yarn Version:" "$(yarn -v)"