Created
August 7, 2025 06:40
-
-
Save maxried/153af6ee0e0bff836ba98305e35f4aa0 to your computer and use it in GitHub Desktop.
scratch-editor in Docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| services: | |
| scratch-gui: | |
| build: | |
| context: . | |
| args: | |
| SCRATCH_VERSION: v11.5.0 | |
| ports: | |
| - 80:80 | |
| restart: unless-stopped | |
| ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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