-
-
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.
Revert "Use zenika/alpine-chrome base image"
- Loading branch information
Showing
1 changed file
with
5 additions
and
5 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,22 +1,22 @@ | ||
# Use Alpine Linux as base image | ||
FROM zenika/alpine-chrome:with-puppeteer | ||
FROM node:alpine | ||
|
||
# Set the working directory in the container | ||
WORKDIR /app | ||
|
||
# Copy package.json and package-lock.json (if available) | ||
COPY --chown=chrome package*.json ./ | ||
COPY package*.json ./ | ||
|
||
# Install dependencies | ||
RUN npm i --verbose | ||
RUN apk update; apk add chromium & npm i --verbose & wait | ||
|
||
# Copy the rest of the application code | ||
COPY --chown=chrome . . | ||
COPY . . | ||
|
||
# Expose the port on which the Node.js application will run | ||
EXPOSE 3000 | ||
|
||
HEALTHCHECK --start-period=5s --interval=1m --timeout=5s --retries=3 CMD node healthcheck.js || exit 1 | ||
|
||
# Command to run the Node.js application | ||
ENTRYPOINT ["node", "index.js"] | ||
CMD ["node", "index.js"] |