Skip to content

Commit

Permalink
Revert "Use zenika/alpine-chrome base image"
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlgo11 committed May 22, 2024
1 parent c6125c1 commit 9db63bf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
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"]

0 comments on commit 9db63bf

Please sign in to comment.