Skip to content

Commit

Permalink
Support mutiple platforms.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Apr 8, 2024
1 parent f5db50b commit 856f6bc
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -56,10 +58,15 @@ RUN echo '/srsstack' > /www/server/panel/data/admin_path.pl && \
cd /www/server/panel && btpython -c 'import tools;tools.set_panel_username("ossrs")' && \
cd /www/server/panel && btpython -c 'import tools;tools.set_panel_pwd("12345678")'

RUN cd /tmp && \
echo "Install libs for aaPanel." && \
curl -sSL https://node.aapanel.com/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 cd /tmp && \
echo "Install NGINX for aaPanel." && \
curl -sSL https://node.aapanel.com/install/4/lib.sh |bash -s -- && \
curl -sSL https://node.aapanel.com/install/4/nginx.sh |bash -s -- install 1.21
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 856f6bc

Please sign in to comment.