iqc / Dockerfile
ken4's picture
Fix Playwright build on Ubuntu 24.04
e14412b verified
Raw History Blame Contribute Delete
495 Bytes
ARG PLAYWRIGHT_VERSION=1.65.0
FROM mcr.microsoft.com/playwright:v${PLAYWRIGHT_VERSION}-noble
ARG PLAYWRIGHT_VERSION
ENV TZ=Asia/Jakarta \
PORT=7860
RUN ln -snf "/usr/share/zoneinfo/$TZ" /etc/localtime && echo "$TZ" > /etc/timezone
WORKDIR /app
RUN --mount=type=secret,id=GITHUB_REPO,required=true \
git clone --depth 1 "$(cat /run/secrets/GITHUB_REPO)" . \
&& rm -rf .git
RUN npm install --omit=dev --no-save "playwright@${PLAYWRIGHT_VERSION}"
EXPOSE 7860
CMD ["node", "app.js"]