Update Dockerfile: pin base image, add wrangler and prettier
This commit is contained in:
parent
c2dbd608b7
commit
01753e2751
12
Dockerfile
12
Dockerfile
@ -1,6 +1,7 @@
|
|||||||
FROM ruby:3.1-bullseye AS builder
|
# ruby:3.1-bullseye, pinned 2026-02-22
|
||||||
|
FROM ruby@sha256:4cc0e5aaa726f8c2cbf1dfc8e5ecd459dbfbebe44b5eee5da6f79ffcc1b6c36f AS builder
|
||||||
|
|
||||||
RUN apt update && apt install -y \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
bsdmainutils \
|
bsdmainutils \
|
||||||
build-essential \
|
build-essential \
|
||||||
make \
|
make \
|
||||||
@ -11,7 +12,8 @@ RUN apt update && apt install -y \
|
|||||||
libxslt-dev \
|
libxslt-dev \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
python3 \
|
python3 \
|
||||||
xz-utils
|
xz-utils \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Node.js 20.18.3 LTS, pinned by sha256
|
# Node.js 20.18.3 LTS, pinned by sha256
|
||||||
RUN cd /tmp && \
|
RUN cd /tmp && \
|
||||||
@ -20,7 +22,9 @@ RUN cd /tmp && \
|
|||||||
tar -xJf node-v20.18.3-linux-x64.tar.xz -C /usr/local --strip-components=1 && \
|
tar -xJf node-v20.18.3-linux-x64.tar.xz -C /usr/local --strip-components=1 && \
|
||||||
rm node-v20.18.3-linux-x64.tar.xz
|
rm node-v20.18.3-linux-x64.tar.xz
|
||||||
|
|
||||||
RUN npm install -g yarn
|
RUN npm install -g yarn && \
|
||||||
|
yarn global add prettier && \
|
||||||
|
npm install -g wrangler
|
||||||
|
|
||||||
ADD ./Gemfile* ./
|
ADD ./Gemfile* ./
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user