Skip to content

Commit

Permalink
Use TARGETARCH build argument
Browse files Browse the repository at this point in the history
  • Loading branch information
nbejansen committed Oct 17, 2023
1 parent 5de580c commit b52339a
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ FROM ghcr.io/sitepilot/runtime:1.x as cli

USER root

ARG BUILDARCH="amd64"
ARG TARGETARCH
ARG PHP_VERSION=8.1

ENV RUNTIME_LOG_LEVEL=3 \
PHP_VERSION=${PHP_VERSION}

RUN $RUNTIME_BIN_DIR/install gnupg2 less

ADD packages/${PHP_VERSION}-${BUILDARCH}.txt /tmp/packages.txt
ADD packages/${PHP_VERSION}-${TARGETARCH}.txt /tmp/packages.txt

RUN wget -O /etc/apt/trusted.gpg.d/lst_debian_repo.gpg http://rpms.litespeedtech.com/debian/lst_debian_repo.gpg \
&& wget -O /etc/apt/trusted.gpg.d/lst_repo.gpg http://rpms.litespeedtech.com/debian/lst_repo.gpg \
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit b52339a

Please sign in to comment.