-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Completes the docker images for all applications
- Loading branch information
1 parent
16ed2a1
commit db75909
Showing
12 changed files
with
176 additions
and
131 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
set -e | ||
set -ex | ||
|
||
apt-get update | ||
|
||
apt-get install -y --no-install-recommends \ | ||
libgnutls30 \ | ||
libssl3 \ | ||
libsystemd0 \ | ||
libudev1 \ | ||
tar \ | ||
libc-bin=2.37-0ubuntu2.2 \ | ||
libc6=2.37-0ubuntu2.2 \ | ||
tar=1.34+dfsg-1.2ubuntu0.2 \ | ||
ca-certificates | ||
|
||
apt-get remove --purge -y --allow-remove-essential \ | ||
login \ | ||
passwd | ||
|
||
apt clean | ||
rm -rf /var/lib/apt/lists/* |
This file was deleted.
Oops, something went wrong.
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,68 @@ | ||
set -ex | ||
|
||
apt-get update | ||
apt-get install -y --no-install-recommends \ | ||
tar \ | ||
make \ | ||
zip \ | ||
unzip \ | ||
curl \ | ||
wget \ | ||
git \ | ||
ssh \ | ||
ca-certificates \ | ||
pkg-config \ | ||
gnupg2 \ | ||
cmake \ | ||
clang-format \ | ||
ninja-build \ | ||
nasm \ | ||
yasm \ | ||
meson \ | ||
libtool \ | ||
autoconf \ | ||
automake \ | ||
build-essential | ||
|
||
git clone https://github.com/ScuffleTV/external.git --depth 1 --recurse-submodule --shallow-submodules /tmp/external | ||
/tmp/external/build.sh --prefix /usr/local --build "x264 x265 svt-av1 libvpx opus dav1d ffmpeg" | ||
ldconfig | ||
rm -rf /tmp/external | ||
|
||
apt-get remove -y --purge \ | ||
make \ | ||
zip \ | ||
unzip \ | ||
curl \ | ||
wget \ | ||
git \ | ||
ssh \ | ||
ca-certificates \ | ||
pkg-config \ | ||
gnupg2 \ | ||
cmake \ | ||
clang-format \ | ||
ninja-build \ | ||
nasm \ | ||
yasm \ | ||
meson \ | ||
libtool \ | ||
autoconf \ | ||
automake \ | ||
build-essential \ | ||
libpython3.11-stdlib \ | ||
libpython3.11-minimal \ | ||
libpython3.11 \ | ||
python3.11 \ | ||
python3.11-minimal \ | ||
g++ \ | ||
g++-12 \ | ||
gcc \ | ||
gcc-12 \ | ||
"*-dev" \ | ||
"*-dev-*" | ||
|
||
apt-get autoremove -y | ||
apt-get clean | ||
rm -rf /var/lib/apt/lists/* | ||
rm /etc/ssh -rf |
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,23 @@ | ||
FROM ubuntu:lunar | ||
|
||
LABEL org.opencontainers.image.source=https://github.com/scuffletv/scuffle | ||
LABEL org.opencontainers.image.description="Platform Image Processor Container for ScuffleTV" | ||
LABEL org.opencontainers.image.licenses=BSD-4-Clause | ||
|
||
WORKDIR /app | ||
|
||
RUN --mount=type=bind,src=docker/ffmpeg.sh,dst=/mount/ffmpeg.sh \ | ||
/mount/ffmpeg.sh | ||
|
||
RUN --mount=type=bind,src=docker/cve.sh,dst=/mount/cve.sh \ | ||
/mount/cve.sh | ||
|
||
RUN --mount=type=bind,src=target/release/platform-image-processor,dst=/mount/platform-image-processor \ | ||
cp /mount/platform-image-processor /app/platform-image-processor && \ | ||
chmod +x /app/platform-image-processor | ||
|
||
# STOPSIGNAL SIGTERM | ||
|
||
# USER 1000 | ||
|
||
# ENTRYPOINT ["/app/platform-image-processor"] |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,20 +1,11 @@ | ||
FROM node:alpine | ||
FROM nginx:alpine | ||
|
||
LABEL org.opencontainers.image.source=https://github.com/scuffletv/scuffle | ||
LABEL org.opencontainers.image.description="Platform Website Container for ScuffleTV" | ||
LABEL org.opencontainers.image.description="Player Demo Website Container for ScuffleTV" | ||
LABEL org.opencontainers.image.licenses=BSD-4-Clause | ||
|
||
RUN apk add --upgrade libcrypto3 libssl3 --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community | ||
|
||
COPY platform/website/build /app/build | ||
COPY platform/website/entry.js /app/index.js | ||
|
||
RUN echo "{\"type\": \"module\"}" > /app/package.json && chown -R 1000:1000 /app | ||
|
||
WORKDIR /app | ||
COPY platform/website/build /usr/share/nginx/html | ||
|
||
STOPSIGNAL SIGTERM | ||
|
||
USER 1000 | ||
|
||
CMD ["node", "."] | ||
ENTRYPOINT ["nginx", "-g", "daemon off;"] |
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