-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
24 lines (21 loc) · 990 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM golang:1-alpine
ENV CHROME_BIN="/usr/bin/chromium-browser"
RUN set -x \
&& apk update \
&& apk upgrade \
# replacing default repositories with edge ones
&& echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" > /etc/apk/repositories \
&& echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
&& echo "http://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories \
\
# Add the packages
&& apk add --no-cache dumb-init dbus curl make gcc g++ linux-headers binutils-gold gnupg libstdc++ nss chromium \
&& apk add --no-cache git vim tor wget ca-certificates libressl freetype ttf-freefont font-noto-emoji font-noto-cjk \
&& apk add --no-cache ffmpeg libwebp-dev youtube-dl you-get xvfb dbus-x11 \
\
&& ln -sf /usr/bin/chromium-browser /usr/bin/chromium \
&& ln -sf /usr/bin/chromium-browser /usr/bin/chrome \
\
# Cleanup
&& rm -rf /var/cache/apk/* /usr/share/man /tmp/*
ENTRYPOINT ["/usr/bin/dumb-init"]