Skip to content

Instantly share code, notes, and snippets.

@maxried
Created August 7, 2025 06:40
Show Gist options
  • Select an option

  • Save maxried/153af6ee0e0bff836ba98305e35f4aa0 to your computer and use it in GitHub Desktop.

Select an option

Save maxried/153af6ee0e0bff836ba98305e35f4aa0 to your computer and use it in GitHub Desktop.
scratch-editor in Docker
---
services:
scratch-gui:
build:
context: .
args:
SCRATCH_VERSION: v11.5.0
ports:
- 80:80
restart: unless-stopped
...
FROM node:24-alpine AS builder
ARG SCRATCH_VERSION=develop
RUN apk add git
WORKDIR /source
RUN git clone --branch ${SCRATCH_VERSION} --depth 1 https://github.com/scratchfoundation/scratch-editor.git .
RUN npm install
RUN npm run build
FROM nginx:alpine
COPY --from=builder /source/packages/scratch-gui/build /usr/share/nginx/html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment