-
Notifications
You must be signed in to change notification settings - Fork 490
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3cef80b
commit 0cd646f
Showing
6 changed files
with
39 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# This Dockerfile pulls the latest build of the OpenBullet2 project from | ||
# the latest release on GitHub and wraps it in a Docker container. | ||
|
||
FROM mcr.microsoft.com/dotnet/aspnet:8.0-bookworm-slim | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
# Install dependencies | ||
RUN apt-get update -yq && apt-get install -y --no-install-recommends apt-utils | ||
RUN apt-get upgrade -yq && apt-get install -yq apt-utils curl git nano wget unzip python3 python3-pip | ||
|
||
# Setup nodejs | ||
RUN curl -sL https://deb.nodesource.com/setup_current.x | bash - && apt-get install -yq nodejs build-essential | ||
RUN echo "deb http://deb.debian.org/debian/ unstable main contrib non-free" >> /etc/apt/sources.list.d/debian.list | ||
|
||
# Install chromium and firefox for selenium and puppeteer | ||
RUN apt-get update -yq && apt-get install -y --no-install-recommends firefox chromium | ||
RUN pip3 install webdrivermanager || true | ||
RUN webdrivermanager firefox chrome --linkpath /usr/local/bin || true | ||
|
||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /app | ||
|
||
# Get OpenBullet2.Web from the latest release on GitHub | ||
RUN wget https://github.com/openbullet/openbullet2/releases/latest/download/OpenBullet2.Web.zip | ||
RUN unzip OpenBullet2.Web.zip | ||
RUN rm OpenBullet2.Web.zip | ||
|
||
EXPOSE 5000 | ||
CMD ["dotnet", "./OpenBullet2.Web.dll", "--urls=http://*:5000"] |
This file was deleted.
Oops, something went wrong.