Skip to content

Commit

Permalink
Support multiple platforms.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Apr 8, 2024
1 parent 1d2b904 commit 29a611c
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -18,6 +18,8 @@ FROM ${ARCH}ossrs/srs:tools AS tools
# See https://hub.docker.com/r/jrei/systemd-ubuntu/tags
FROM ${ARCH}jrei/systemd-ubuntu:focal AS dist

ARG TARGETARCH

# Copy nodejs for ui build.
COPY --from=node /usr/local/bin /usr/local/bin
COPY --from=node /usr/local/lib /usr/local/lib
@@ -64,5 +66,13 @@ RUN cd /tmp && \
echo "Remove the BT plugin webssh, a SSH tool." && \
if [[ -f /www/server/panel/plugin/webssh/install.sh ]]; then bash /www/server/panel/plugin/webssh/install.sh uninstall; fi && \
echo "Install NGINX for BT." && \
curl -sSL https://download.bt.cn/install/4/lib.sh |bash -s -- && \
curl -sSL https://download.bt.cn/install/4/nginx.sh |bash -s -- install 1.22
curl -sSL https://download.bt.cn/install/4/lib.sh |bash -s --

# Note: We install nginx 1.22 by default, like:
# http://localhost:7800/plugin?action=install_plugin
# sName=nginx&version=1.22&min_version=1&type=1
RUN if [[ $TARGETARCH != 'arm64' ]]; then \
cd /tmp && \
echo "Install NGINX for aaPanel." && \
curl -sSL https://node.aapanel.com/install/4/nginx.sh |bash -s -- install 1.22; \
fi

0 comments on commit 29a611c

Please sign in to comment.