-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (28 loc) · 859 Bytes
/
Dockerfile
File metadata and controls
35 lines (28 loc) · 859 Bytes
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
26
27
28
29
30
31
32
33
34
35
FROM mcr.microsoft.com/dotnet/runtime:8.0
ENV DEBIAN_FRONTEND=noninteractive
# Install Chromium's runtime dependencies and XVFB.
RUN apt-get update && \
apt-get -y install --no-install-recommends \
libgtk2.0-0 \
libgtk-3-0 \
libgbm1 \
libnotify4 \
libgconf-2-4 \
libnss3 \
libxss1 \
libasound2 \
libxtst6 \
xauth \
xvfb \
x11-xserver-utils && \
rm -rf /var/lib/apt/lists/*
# Set the working directory.
WORKDIR /Example.Docker
# Copy a script that starts a virtual X11 server and launches the application.
COPY startup.sh .
# Normalize CRLF line endings and make script executable
RUN sed -i 's/\r$//' startup.sh && chmod +x startup.sh
# Copy the project files.
COPY out/ .
# Set the entrypoint.
ENTRYPOINT ["/bin/sh", "/Example.Docker/startup.sh"]