File size: 739 Bytes
bcfa321 097fb32 bcfa321 2959b84 097fb32 bcfa321 097fb32 2959b84 097fb32 bcfa321 097fb32 2959b84 bcfa321 097fb32 2959b84 097fb32 2959b84 097fb32 6df40b1 097fb32 bcfa321 | 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 35 36 37 38 39 40 | FROM node:20-bullseye
ENV DEBIAN_FRONTEND=noninteractive
ENV PORT=7860
ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
python3 \
make \
g++ \
wget \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
COPY package*.json ./
COPY stealth-proxy/package*.json ./stealth-proxy/
RUN npm ci
RUN cd stealth-proxy && npm ci
COPY . .
RUN npm run build
RUN npx playwright install chromium --with-deps
RUN useradd --system --create-home appuser \
&& mkdir -p /app/logs /ms-playwright \
&& chmod +x /app/start.sh \
&& chown -R appuser:appuser /app /ms-playwright
ENV NODE_ENV=production
USER appuser
EXPOSE 7860
CMD ["./start.sh"] |