Skip to content

fix: docker build #591

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

Merged
merged 1 commit into from
Apr 16, 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
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# build front-end
FROM node:20-alpine AS frontend
FROM node:22-alpine AS frontend

ARG GIT_COMMIT_HASH=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ARG RELEASE_VERSION=v0.0.0

ENV VITE_GIT_COMMIT_HASH $GIT_COMMIT_HASH
ENV VITE_RELEASE_VERSION $RELEASE_VERSION

RUN npm install pnpm -g
RUN npm install pnpm@8 -g

WORKDIR /app

Expand All @@ -22,9 +22,9 @@ COPY . /app
RUN pnpm run build

# build backend
FROM node:20-alpine as backend
FROM node:22-alpine as backend

RUN npm install pnpm -g
RUN npm install pnpm@8 -g

WORKDIR /app

Expand All @@ -39,9 +39,9 @@ COPY /service /app
RUN pnpm build

# service
FROM node:20-alpine
FROM node:22-alpine

RUN npm install pnpm -g
RUN npm install pnpm@8 -g

WORKDIR /app

Expand Down