-
Notifications
You must be signed in to change notification settings - Fork 32
/
Dockerfile
25 lines (20 loc) · 899 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
25
FROM debian:bullseye
# Dockerfile from
# https://magpcss.org/ceforum/viewtopic.php?f=7&t=17776&p=46448#p54107
# linked from official automated build setup documentation in
# https://bitbucket.org/chromiumembedded/cef/wiki/AutomatedBuildSetup.md
# Required otherwise the following RUN instruction would fail at the first chmod
# with 'missing operand'. See https://serverfault.com/a/960335/320690
USER root
SHELL ["/bin/bash", "-c"]
# Copy the install directory into the image.
COPY install/ /app/install
# Install Chromium dependencies.
RUN chmod +x /app/install/*.sh && \
/app/install/install.sh
# Continue to the default entrypoint as a non-root user.
# This isn't strictly required since the `build-in-docker` script will run with
# the `--user` command-line argument, but it adds safety by default.
RUN groupadd -g 999 appuser && \
useradd -r -u 999 -g appuser appuser
USER appuser