Skip to content

Commit

Permalink
Merge pull request #201 from zazuko/docker-casing
Browse files Browse the repository at this point in the history
Fix Docker casing, and upgrade to Node 22
  • Loading branch information
ludovicm67 authored Sep 19, 2024
2 parents 3848885 + cbaf508 commit d5e56b1
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,6 +1,6 @@
FROM docker.io/library/node:20 as respec
FROM docker.io/library/node:22 AS respec

# install some required dependencies to run Puppeteer (for ReSpec)
# Install some required dependencies to run Puppeteer (for ReSpec)
RUN apt-get update && apt-get install -y \
chromium \
fonts-liberation \
Expand Down Expand Up @@ -39,19 +39,19 @@ WORKDIR /app
COPY package.json package-lock.json ./
RUN npm install
COPY . .
# start a server locally, and generate the ReSpec HTML file
# Start a server locally, and generate the ReSpec HTML file
RUN npm run build

# Final Docker image
FROM docker.io/library/node:20-alpine
FROM docker.io/library/node:22-alpine

EXPOSE 8080

WORKDIR /app

RUN apk add --no-cache tini

# install Trifid
# Install Trifid
ENV NODE_ENV=production
COPY package.json package-lock.json ./
RUN npm install
Expand Down

0 comments on commit d5e56b1

Please sign in to comment.