-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.yarn
More file actions
22 lines (19 loc) · 905 Bytes
/
Dockerfile.yarn
File metadata and controls
22 lines (19 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM alpine:3.18.3
RUN addgroup -g 10001 \
-S nonroot && \
adduser -u 10000 \
-G nonroot \
-h /home/nonroot \
-S nonroot
RUN echo -e "https://dl-cdn.alpinelinux.org/alpine/v$(cut -d'.' -f1,2 /etc/alpine-release)/main/\n \
https://dl-cdn.alpinelinux.org/alpine/v$(cut -d'.' -f1,2 /etc/alpine-release)/community/\n \
https://dl-cdn.alpinelinux.org/alpine/edge/testing/\n \
https://dl-cdn.alpinelinux.org/alpine/edge/community/\n \
https://dl-cdn.alpinelinux.org/alpine/edge/main/" > /etc/apk/repositories && \
sed -i 's/^[ \t]*//;s/[ \t]*$//' /etc/apk/repositories
RUN apk update && \
apk add --no-cache tini=0.19.0-r1 \
bind-tools=9.18.16-r0 \
nodejs=18.17.1-r0 \
npm=9.6.6-r0 \
yarn=1.22.19-r0