mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +01:00
add browsh
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
5eeb7c5753
commit
e135194c74
33
browsh/Dockerfile
Normal file
33
browsh/Dockerfile
Normal file
|
@ -0,0 +1,33 @@
|
|||
FROM alpine:latest
|
||||
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
||||
|
||||
# Install bash so we have it.
|
||||
RUN apk add --no-cache \
|
||||
bash
|
||||
|
||||
# Install firefox.
|
||||
RUN apk add --no-cache \
|
||||
firefox \
|
||||
--repository https://dl-4.alpinelinux.org/alpine/edge/testing \
|
||||
&& firefox --version
|
||||
|
||||
# Install browsh.
|
||||
ENV BROWSH_VERSION 1.3.3
|
||||
RUN wget "https://github.com/browsh-org/browsh/releases/download/v${BROWSH_VERSION}/browsh_${BROWSH_VERSION}_linux_amd64" -O /usr/local/bin/browsh \
|
||||
&& chmod a+x /usr/local/bin/browsh
|
||||
|
||||
# Create user and change ownership
|
||||
RUN addgroup -g 666 -S browsh \
|
||||
&& adduser -u 666 -SHG browsh browsh
|
||||
|
||||
#WORKDIR /home/browsh
|
||||
#USER browsh
|
||||
|
||||
# Firefox behaves quite differently to normal on its first run, so by getting
|
||||
# that over and done with here when there's no user to be dissapointed means
|
||||
# that all future runs will be consistent.
|
||||
RUN TERM=xterm browsh & \
|
||||
pidsave=$!; \
|
||||
sleep 10; kill $pidsave || true;
|
||||
|
||||
ENTRYPOINT [ "/usr/local/bin/browsh" ]
|
|
@ -95,6 +95,7 @@ compare() {
|
|||
|
||||
projects=(
|
||||
noelbundick/azure-cli-extension-noelbundick
|
||||
browsh-org/browsh
|
||||
certbot/certbot
|
||||
hashicorp/consul
|
||||
coredns/coredns
|
||||
|
|
Loading…
Reference in New Issue
Block a user