Skip to content

Commit 97e024f

Browse files
fix 3
1 parent 3c2393b commit 97e024f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎packages/openscratch-server/Dockerfile‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ ENV NODE_OPTIONS=--max-old-space-size=4096
1717
RUN npm install -g pnpm@11.5.2
1818

1919
WORKDIR /app
20-
# git is needed to fetch the scratch-gui (and its scratch-blocks) GitHub deps.
21-
RUN apt-get update && apt-get install -y --no-install-recommends git && rm -rf /var/lib/apt/lists/*
20+
# git fetches the scratch-gui (and scratch-blocks) GitHub deps; a headless JRE is
21+
# needed because scratch-blocks' build runs the Java-based Google Closure Compiler.
22+
RUN apt-get update && apt-get install -y --no-install-recommends git default-jre-headless && rm -rf /var/lib/apt/lists/*
2223

2324
# In the monorepo, allowBuilds lives in the root pnpm-workspace.yaml. The Docker
2425
# context is just this package, so we supply an equivalent settings file to permit

0 commit comments

Comments
 (0)