File size: 625 Bytes
fe8ebe3 b0c1e98 fe8ebe3 b0c1e98 fe8ebe3 b0c1e98 fe8ebe3 | 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 32 33 34 | FROM node:20-alpine
WORKDIR /app
RUN apk add --no-cache \
python3 \
make \
g++ \
git \
chromium \
nss \
freetype \
freetype-dev \
harfbuzz \
ca-certificates \
ttf-freefont \
gcompat
ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 \
PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH=/usr/bin/chromium-browser \
PORT=7860
RUN git clone --depth 1 https://github.com/zhezzma/playwright-proxy .
RUN npm install
RUN npm run build
RUN addgroup -S -g 1001 nodejs && \
adduser -S -D -H -u 1001 -G nodejs hono
RUN chown -R hono:nodejs /app
USER hono
EXPOSE 7860
CMD ["node", "dist/index.js"] |