-
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.
- Loading branch information
Showing
1 changed file
with
10 additions
and
19 deletions.
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,24 +1,15 @@ | ||
FROM node:20-slim | ||
|
||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
wget \ | ||
gnupg \ | ||
ca-certificates \ | ||
--no-install-recommends | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
chromium \ | ||
--no-install-recommends \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
FROM node:20-slim AS builder | ||
WORKDIR /usr/src/app | ||
|
||
ENV PUPPETEER_SKIP_CHROME_DOWNLOAD=true | ||
COPY ./web-service/package*.json ./ | ||
RUN npm install | ||
RUN npm ci --only=production | ||
COPY ./web-service . | ||
|
||
EXPOSE 3000 | ||
|
||
CMD ["npm", "start"] | ||
FROM node:20-slim | ||
WORKDIR /usr/src/app | ||
RUN apt-get update && apt-get install chromium -y --no-install-recommends | ||
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium | ||
EXPOSE 3000 | ||
COPY --from=builder /usr/src/app . | ||
CMD ["npm", "start"] |