-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add errorMessage to screenshot api
- Loading branch information
1 parent
bd96d6b
commit 5978ea0
Showing
1 changed file
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,20 @@ | ||
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 | ||
|
||
# Clean up to reduce image size | ||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
# Verify installation | ||
RUN chromium-browser --version | ||
|
||
WORKDIR /app | ||
COPY package*.json ./ | ||
RUN npm install | ||
COPY . . | ||
RUN npm run build | ||
EXPOSE 3000 | ||
CMD ["npm", "run" , "start"] | ||
CMD ["npm", "run" , "start"] |