Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update standalone dockerfile to node 22 #1779

Merged
merged 1 commit into from
Jan 24, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Dockerfile.standalone
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-alpine as backend
FROM node:22-alpine as backend
RUN apk add --no-cache libc6-compat
RUN apk update
WORKDIR /app
Expand All @@ -7,7 +7,7 @@ RUN --mount=type=cache,target=/cache/npm npm install --cache=/cache/npm
COPY backend .
RUN npm run build

FROM node:18-alpine as frontend
FROM node:22-alpine as frontend
RUN apk add --no-cache libc6-compat
RUN apk update
WORKDIR /app
Expand All @@ -22,7 +22,7 @@ RUN apt update
ENV DEBIAN_FRONTEND=noninteractive
RUN apt install git curl wget gnupg ca-certificates iproute2 nginx supervisor -y

RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - &&\
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - &&\
apt install nodejs -y

#ENV MINIO_ROOT_USER=minioadmin
Expand Down Expand Up @@ -67,7 +67,7 @@ COPY backend/package*.json ./
COPY backend/certs/san.cnf ./
RUN --mount=type=cache,target=/cache/npm npm install --omit=dev --cache=/cache/npm
RUN mkdir -p certs && openssl genrsa -out certs/key.pem 2048 && openssl req -new -x509 -key certs/key.pem -out certs/cert.pem -config ./san.cnf -extensions 'v3_req' -days 360
COPY backend/python-docs python-docs
COPY backend/docs python-docs
COPY --from=backend /app/config config
COPY --from=backend /app/dist .
COPY infrastructure/standalone/local.cjs config/local.cjs
Expand Down
Loading