Fix some for deploy
This commit is contained in:
@@ -1,19 +1,20 @@
|
||||
FROM node:20-alpine AS alpine
|
||||
RUN apk update
|
||||
RUN apk add --no-cache libc6-compat
|
||||
FROM node:20-bookworm-slim AS base
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends ca-certificates \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Setup pnpm
|
||||
ENV PNPM_HOME="/pnpm"
|
||||
ENV PATH="$PNPM_HOME:$PATH"
|
||||
RUN corepack enable pnpm
|
||||
|
||||
FROM alpine AS builder
|
||||
FROM base AS builder
|
||||
WORKDIR /app
|
||||
RUN pnpm i -g turbo
|
||||
COPY . .
|
||||
RUN turbo prune user-app --docker
|
||||
|
||||
FROM alpine AS installer
|
||||
FROM base AS installer
|
||||
WORKDIR /app
|
||||
# First install dependencies
|
||||
COPY .gitignore .gitignore
|
||||
|
||||
Reference in New Issue
Block a user