release/Dockerfile: Skip playwright on arm64
This commit is contained in:
parent
371c9c200d
commit
519170b9f3
1 changed files with 4 additions and 2 deletions
|
|
@ -7,7 +7,9 @@ RUN apt-get update && apt-get install -y ca-certificates curl dumb-init sudo
|
||||||
|
|
||||||
RUN curl -fsSL https://deb.nodesource.com/setup_19.x | bash -s - && \
|
RUN curl -fsSL https://deb.nodesource.com/setup_19.x | bash -s - && \
|
||||||
apt-get install -y nodejs
|
apt-get install -y nodejs
|
||||||
RUN npx playwright install-deps
|
# https://github.com/microsoft/playwright/issues/18319
|
||||||
|
# Hopefully soon.
|
||||||
|
RUN [ "$TARGETARCH" = amd64 ] && npx playwright install-deps
|
||||||
|
|
||||||
RUN adduser --gecos '' --disabled-password debian \
|
RUN adduser --gecos '' --disabled-password debian \
|
||||||
&& echo "debian ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd
|
&& echo "debian ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd
|
||||||
|
|
@ -26,7 +28,7 @@ RUN mkdir -p /usr/local/lib/d2 \
|
||||||
&& rm -Rf /tmp/d2-*-linux-"$TARGETARCH".tar.gz
|
&& rm -Rf /tmp/d2-*-linux-"$TARGETARCH".tar.gz
|
||||||
|
|
||||||
USER debian:debian
|
USER debian:debian
|
||||||
RUN d2 init-playwright
|
RUN [ "$TARGETARCH" = amd64 ] && d2 init-playwright
|
||||||
|
|
||||||
WORKDIR /home/debian/src
|
WORKDIR /home/debian/src
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue