Switch to Chromium
This commit is contained in:
parent
e9df645b49
commit
d9fc5df080
8 changed files with 24 additions and 154 deletions
63
Dockerfile
63
Dockerfile
|
@ -1,7 +1,7 @@
|
|||
#
|
||||
# firefox Dockerfile
|
||||
# Chromium Dockerfile
|
||||
#
|
||||
# https://github.com/jlesage/docker-firefox
|
||||
# https://git.mmbradley.ca/MichaelBradley/docker-chromium
|
||||
#
|
||||
|
||||
# Build the membarrier check tool.
|
||||
|
@ -16,24 +16,20 @@ RUN strip membarrier_check
|
|||
FROM jlesage/baseimage-gui:alpine-3.21-v4.7.1
|
||||
|
||||
# Docker image version is provided via build arg.
|
||||
ARG DOCKER_IMAGE_VERSION=
|
||||
ARG DOCKER_IMAGE_VERSION=v0.1.0
|
||||
|
||||
# Define software versions.
|
||||
ARG FIREFOX_VERSION=136.0.4-r0
|
||||
#ARG PROFILE_CLEANER_VERSION=2.36
|
||||
|
||||
# Define software download URLs.
|
||||
#ARG PROFILE_CLEANER_URL=https://github.com/graysky2/profile-cleaner/raw/v${PROFILE_CLEANER_VERSION}/common/profile-cleaner.in
|
||||
ARG CHROMIUM_VERSION=136.0.7103.113-r0
|
||||
|
||||
# Define working directory.
|
||||
WORKDIR /tmp
|
||||
|
||||
# Install Firefox.
|
||||
# Install Chromium.
|
||||
RUN \
|
||||
# add-pkg --repository http://dl-cdn.alpinelinux.org/alpine/edge/main \
|
||||
# --repository http://dl-cdn.alpinelinux.org/alpine/edge/community \
|
||||
# --upgrade firefox=${FIREFOX_VERSION}
|
||||
add-pkg firefox=${FIREFOX_VERSION}
|
||||
# --upgrade chromium=${CHROMIUM_VERSION}
|
||||
add-pkg chromium=${CHROMIUM_VERSION}
|
||||
|
||||
# Install extra packages.
|
||||
RUN \
|
||||
|
@ -47,34 +43,7 @@ RUN \
|
|||
# A font is needed.
|
||||
font-dejavu \
|
||||
# The following package is used to send key presses to the X process.
|
||||
xdotool \
|
||||
&& \
|
||||
# Remove unneeded icons.
|
||||
find /usr/share/icons/Adwaita -type d -mindepth 1 -maxdepth 1 -not -name 16x16 -not -name scalable -exec rm -rf {} ';' && \
|
||||
true
|
||||
|
||||
# Install profile-cleaner.
|
||||
#RUN \
|
||||
# add-pkg --virtual build-dependencies curl && \
|
||||
# curl -# -L -o /usr/bin/profile-cleaner {$PROFILE_CLEANER_URL} && \
|
||||
# sed-patch 's/@VERSION@/'${PROFILE_CLEANER_VERSION}'/' /usr/bin/profile-cleaner && \
|
||||
# chmod +x /usr/bin/profile-cleaner && \
|
||||
# add-pkg \
|
||||
# bash \
|
||||
# file \
|
||||
# coreutils \
|
||||
# bc \
|
||||
# parallel \
|
||||
# sqlite \
|
||||
# && \
|
||||
# # Cleanup.
|
||||
# del-pkg build-dependencies && \
|
||||
# rm -rf /tmp/* /tmp/.[!.]*
|
||||
|
||||
# Generate and install favicons.
|
||||
RUN \
|
||||
APP_ICON_URL=https://github.com/jlesage/docker-templates/raw/master/jlesage/images/firefox-icon.png && \
|
||||
install_app_icon.sh "$APP_ICON_URL"
|
||||
xdotool
|
||||
|
||||
# Add files.
|
||||
COPY rootfs/ /
|
||||
|
@ -82,21 +51,15 @@ COPY --from=membarrier /tmp/membarrier_check /usr/bin/
|
|||
|
||||
# Set internal environment variables.
|
||||
RUN \
|
||||
set-cont-env APP_NAME "Firefox" && \
|
||||
set-cont-env APP_VERSION "$FIREFOX_VERSION" && \
|
||||
set-cont-env APP_NAME "Chromium" && \
|
||||
set-cont-env APP_VERSION "$CHROMIUM_VERSION" && \
|
||||
set-cont-env DOCKER_IMAGE_VERSION "$DOCKER_IMAGE_VERSION" && \
|
||||
true
|
||||
|
||||
# Set public environment variables.
|
||||
ENV \
|
||||
FF_OPEN_URL= \
|
||||
FF_KIOSK=0 \
|
||||
FF_CUSTOM_ARGS=
|
||||
|
||||
# Metadata.
|
||||
LABEL \
|
||||
org.label-schema.name="firefox" \
|
||||
org.label-schema.description="Docker container for Firefox" \
|
||||
org.label-schema.name="chromium" \
|
||||
org.label-schema.description="Docker container for Chromium" \
|
||||
org.label-schema.version="${DOCKER_IMAGE_VERSION:-unknown}" \
|
||||
org.label-schema.vcs-url="https://github.com/jlesage/docker-firefox" \
|
||||
org.label-schema.vcs-url="https://git.mmbradley.ca/MichaelBradley/docker-chromium" \
|
||||
org.label-schema.schema-version="1.0"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue