mirror of
https://github.com/yamadashy/repomix.git
synced 2026-05-30 11:18:53 +02:00
feat(website): migrate base image from slim to alpine
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
# ==============================================================================
|
||||
# Base image
|
||||
# ==============================================================================
|
||||
FROM node:22-slim AS builder
|
||||
FROM node:22-alpine AS builder
|
||||
|
||||
# Install git and other dependencies
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
RUN apk add --no-cache \
|
||||
git \
|
||||
ca-certificates \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
ca-certificates
|
||||
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
@@ -24,13 +23,13 @@ RUN npm run build
|
||||
# ==============================================================================
|
||||
# Production image
|
||||
# ==============================================================================
|
||||
FROM node:22-slim
|
||||
FROM node:22-alpine
|
||||
|
||||
# Install git and cleanup in a single layer
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
# Install git and other dependencies
|
||||
RUN apk add --no-cache \
|
||||
git \
|
||||
ca-certificates \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
curl
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
||||
Reference in New Issue
Block a user