Skip to content

Commit ce2f8e6

Browse files
committed
✨ update to Chrome 68 and tag it.
1 parent 917c62c commit ce2f8e6

File tree

4 files changed

+16
-14
lines changed

4 files changed

+16
-14
lines changed

.dockerignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
**/*.pdf
2+
**/*.png
3+
**/node_modules
4+
hooks/

Dockerfile

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
FROM zenika/alpine-node:latest
22

3-
# Update apk repositories
4-
RUN echo "http://dl-2.alpinelinux.org/alpine/edge/main" > /etc/apk/repositories
5-
RUN echo "http://dl-2.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
6-
RUN echo "http://dl-2.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
7-
8-
# Install chromium
9-
RUN apk -U --no-cache \
3+
# Update apk repositories & install chromium
4+
RUN echo "http://dl-2.alpinelinux.org/alpine/edge/main" > /etc/apk/repositories \
5+
&& echo "http://dl-2.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
6+
&& echo "http://dl-2.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
7+
&& apk -U --no-cache \
108
--allow-untrusted add \
119
zlib-dev \
1210
chromium \
@@ -30,11 +28,11 @@ RUN apk -U --no-cache \
3028
# Add Chrome as a user
3129
RUN adduser -D chrome \
3230
&& chown -R chrome:chrome /usr/src/app
33-
# Run Chrome non-privileged
31+
# Run Chrome as non-privileged
3432
USER chrome
3533

36-
ENV CHROME_BIN=/usr/bin/chromium-browser
37-
ENV CHROME_PATH=/usr/lib/chromium/
34+
ENV CHROME_BIN=/usr/bin/chromium-browser \
35+
CHROME_PATH=/usr/lib/chromium/
3836

3937
# Autorun chrome headless with no GPU
4038
ENTRYPOINT ["chromium-browser", "--headless", "--disable-gpu", "--disable-software-rasterizer"]

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Supported tags and respective `Dockerfile` links
22

3-
* `latest`, `64` [(Dockerfile)](https://github.com/Zenika/alpine-chrome/blob/master/Dockerfile)
3+
* `latest`, `68` [(Dockerfile)](https://github.com/Zenika/alpine-chrome/blob/master/Dockerfile)
44

55
# alpine-chrome
66
Minimal Headless Chrome Docker Images built on Alpine Linux
@@ -113,12 +113,12 @@ docker run -it --rm -v $(pwd):/usr/src/app --cap-add=SYS_ADMIN zenika/alpine-chr
113113

114114
```
115115
docker run -it --rm --entrypoint "" zenika/alpine-chrome cat /etc/alpine-release
116-
3.7.0
116+
3.8.0
117117
```
118118

119119
## Chrome version
120120

121121
```
122122
docker run -it --rm --entrypoint "" zenika/alpine-chrome chromium-browser --version
123-
Chromium 64.0.3282.168
123+
Chromium 68.0.3440.75
124124
```

hooks/post_push

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44
tagStart=$(expr index "$IMAGE_NAME" :)
55
repoName=${IMAGE_NAME:0:tagStart-1}
66

7-
for tag in 64; do
7+
for tag in 68; do
88
docker tag $IMAGE_NAME ${repoName}:${tag}
99
docker push ${repoName}:${tag}
1010
done

0 commit comments

Comments
 (0)