feat(website): migrate base image from slim to alpine

This commit is contained in:
Kazuki Yamada
2025-01-04 21:40:29 +09:00
parent cc72dcc925
commit eceb88672e
+7 -8
View File
@@ -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