-
Notifications
You must be signed in to change notification settings - Fork 0
/
drti.Dockerfile
22 lines (16 loc) 路 1 KB
/
drti.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM node:20-alpine3.19
RUN adduser --disabled-password --home /home/container container
RUN echo https://dl-cdn.alpinelinux.org/alpine/v3.19/main > /etc/apk/repositories
RUN echo https://dl-cdn.alpinelinux.org/alpine/v3.19/community >> /etc/apk/repositories
RUN echo @edge https://dl-cdn.alpinelinux.org/alpine/edge/community >> /etc/apk/repositories
RUN echo @edge https://dl-cdn.alpinelinux.org/alpine/edge/main >> /etc/apk/repositories
RUN apk add --no-cache --update bash chromium@edge nss@edge wget
ARG TARGETPLATFORM
RUN ["/bin/bash", "-c", "if [ \"$TARGETPLATFORM\" = \"linux/amd64\" ]; then \
wget https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_x86_64 -O /usr/local/bin/dumb-init; \
elif [ \"$TARGETPLATFORM\" = \"linux/arm64\" ]; then \
wget https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_aarch64 -O /usr/local/bin/dumb-init; \
fi"]
RUN rm -rf /var/cache/apk/* /tmp/*
RUN chmod +x /usr/local/bin/dumb-init
ENTRYPOINT ["dumb-init", "--"]