File size: 688 Bytes
db206b9 6243cb1 db206b9 6243cb1 db206b9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | # Use Playwright image
FROM mcr.microsoft.com/playwright:focal
# Set environment variable to avoid Playwright dialog
ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD 1
# Specify work directory
WORKDIR /app
# Install FFmpeg
RUN apt-get update && apt-get install -y ffmpeg
# Force no cache with build arg
ARG CACHEBUST=1
# Clone repo with authentication, shallow clone
RUN --mount=type=secret,id=GITHUB_REPO,required=true \
git clone --depth=1 $(cat /run/secrets/GITHUB_REPO) .
# Install dependencies
RUN npm install
# Install Playwright dependencies dan browser binaries
RUN npx playwright install --with-deps
# Expose port aplikasi
EXPOSE 7860
# Run the application
CMD ["npm", "start"]
|