-
Notifications
You must be signed in to change notification settings - Fork 490
/
Dockerfile.remote
51 lines (40 loc) · 1.53 KB
/
Dockerfile.remote
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM mcr.microsoft.com/dotnet/aspnet:8.0-bookworm-slim
ENV DEBIAN_FRONTEND=noninteractive
# Install basic dependencies
RUN apt-get update -yq \
&& apt-get install -y --no-install-recommends \
apt-utils \
curl \
git \
nano \
wget \
unzip \
python3 \
python3-pip \
gnupg \
lsb-release \
software-properties-common
# Setup Node.js (LTS Version)
RUN curl -sL https://deb.nodesource.com/setup_lts.x | bash - \
&& apt-get install -yq nodejs build-essential
# Add Mozilla Team PPA for the latest Firefox
RUN echo "deb http://ppa.launchpad.net/mozillateam/ppa/ubuntu focal main" | tee /etc/apt/sources.list.d/mozillateam-ppa.list \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A6DCF7707EBC211F \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9BDB3D89CE49EC21 \
&& apt-get update -yq
# Install the latest Firefox and Chromium
RUN apt-get install -y --no-install-recommends \
firefox \
chromium
# Install WebDriverManager
RUN pip3 install webdrivermanager || true \
&& webdrivermanager firefox chrome --linkpath /usr/local/bin || true
# Clean up
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Download and unpack the latest OpenBullet2.Web release
RUN wget https://github.com/openbullet/openbullet2/releases/latest/download/OpenBullet2.Web.zip \
&& unzip OpenBullet2.Web.zip \
&& rm OpenBullet2.Web.zip
EXPOSE 5000
CMD ["dotnet", "./OpenBullet2.Web.dll", "--urls=http://*:5000"]