Skip to content

Commit af69c12

Browse files
committed
fix: switch Docker build image from alpine to debian
TLDR; tailwindlabs/tailwindcss#17958
1 parent 7499b18 commit af69c12

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/docker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
echo "IS_SNAPSHOT=false" >> $GITHUB_OUTPUT
6262
fi
6363
64-
- name: 🐳 Docker meta
64+
- name: 🐳 Build Docker metadata
6565
id: meta
6666
uses: docker/metadata-action@v5
6767
with:

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
FROM node:22.18.0-alpine@sha256:1b2479dd35a99687d6638f5976fd235e26c5b37e8122f786fcd5fe231d63de5b AS deps
2-
RUN apk add --no-cache libc6-compat
1+
FROM node:22.18.0-trixie-slim@sha256:d02467efc049791a7586a20e36d9219d184ab89e45b19c57e88cff322678c233 AS deps
32
WORKDIR /app
43

54
COPY package.json package-lock.json ./
65

76
# Install dependencies
8-
RUN npm install --frozen-lockfile --legacy-peer-deps --ignore-scripts
7+
RUN npm ci --frozen-lockfile --legacy-peer-deps --ignore-scripts
98

109
# Rebuild the source code only when needed
11-
FROM node:22.18.0-alpine@sha256:1b2479dd35a99687d6638f5976fd235e26c5b37e8122f786fcd5fe231d63de5b AS builder
10+
FROM node:22.18.0-trixie-slim@sha256:d02467efc049791a7586a20e36d9219d184ab89e45b19c57e88cff322678c233 AS builder
1211
WORKDIR /app
1312
COPY --from=deps /app/node_modules ./node_modules
1413
COPY . .

0 commit comments

Comments
 (0)