Files
insta-recipe/Dockerfile
Giancarmine Salucci 40e3fb0c1b fix playwright
2026-02-18 01:43:41 +01:00

24 lines
457 B
Docker

FROM node:24-alpine
WORKDIR /app
# Install Playwright system dependencies
RUN apk add --no-cache \
chromium \
font-liberation \
font-noto \
font-noto-cjk
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
EXPOSE 3000
ENV NODE_ENV=production
ENV CHROMIUM_EXECUTABLE_PATH=/usr/bin/chromium-browser
# Declare volume for Instagram authentication persistence
VOLUME ["/app/secrets"]
CMD ["node", "-e", "import('./build/index.js')"]