Skip to content

Commit 063b4bd

Browse files
committed
fix docker build
1 parent ec597d6 commit 063b4bd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1-
FROM ruby:3.0-slim-buster
1+
FROM ruby:3.2.4-slim-bookworm
22

33
ARG DEBIAN_FRONTEND=noninteractive
44
RUN apt-get update && apt-get install -y --no-install-recommends \
55
build-essential \
66
git \
77
python3 \
88
python3-pip \
9+
python3-venv \
910
nodejs
1011

11-
# explicit and recent version of pip avoids needing to build wheel deps
12-
RUN pip3 install pip==22.3.1
13-
1412
WORKDIR /memfault/interrupt
1513

1614
COPY Gemfile .
@@ -19,7 +17,8 @@ RUN bundle config force_ruby_platform true
1917
RUN bundle install
2018

2119
COPY requirements.txt .
22-
RUN python3 -m pip install -r requirements.txt
20+
RUN python3 -m venv /venv && . /venv/bin/activate && \
21+
python3 -m pip install -r requirements.txt
2322

2423
COPY entrypoint.sh ./entrypoint.sh
2524

entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22

33
set -euo pipefail
44

5+
. /venv/bin/activate
56
bundle exec jekyll serve --host 0.0.0.0 -D "$@" --trace --future

0 commit comments

Comments
 (0)