Skip to content

Commit

Permalink
feat: add errorMessage to screenshot api
Browse files Browse the repository at this point in the history
  • Loading branch information
junseublim committed Dec 18, 2024
1 parent 5978ea0 commit a327613
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
FROM node:20-alpine3.19 as builder

# Update package list and install Chromium
RUN apt-get update && apt-get install -y \
chromium-browser \
--no-install-recommends
# Install Chromium and necessary dependencies
RUN apk add --no-cache \
chromium \
harfbuzz \
nss \
freetype \
ttf-freefont \
mesa \
dbus

# Clean up to reduce image size
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
# Set environment variable for Chromium
ENV CHROME_BIN=/usr/bin/chromium-browser
ENV CHROME_PATH=/usr/lib/chromium/

# Verify installation
RUN chromium-browser --version
Expand Down

0 comments on commit a327613

Please sign in to comment.