frontend docker refactor

This commit is contained in:
fred 2026-01-28 13:17:57 -08:00
parent 63e33a45b4
commit 8c7fb8c6bf
8 changed files with 30 additions and 30 deletions

View file

@ -6,7 +6,10 @@ COPY package*.json tsconfig*.json prisma.config.ts ./
COPY prisma ./prisma
COPY src ./src
RUN apt-get update -y && apt-get install -y openssl
RUN apt-get update -y && \
apt-get install -y openssl && \
rm -rf /var/lib/apt/lists/*
RUN npm install --omit=dev
RUN npm run prisma:generate
@ -18,9 +21,6 @@ RUN npm run build
FROM base
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/prisma ./prisma
# COPY --from=builder /app/node_modules ./node_modules
COPY prisma.config.ts /app/
EXPOSE 3000