ci: updated dockerfile

This commit is contained in:
Marvin Zhang
2024-10-24 14:45:03 +08:00
parent 40bd94ceb4
commit 7579cc40ad

View File

@@ -7,15 +7,12 @@ WORKDIR /app
# Install pnpm
RUN npm install -g pnpm
# Copy package.json and pnpm-lock.yaml
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
# Copy application code
ADD . .
# Install project dependencies
RUN pnpm install
# Copy the rest of the application code
COPY . .
# Build the application
RUN pnpm run build