Open
Description
Hello Dale Lane,
My name is Mathias Rettich. I'm a teacher at a German high school.
For the next school year, I want to develop a Scratch extension with a group of students for a self-designed ESP32 board. I watched your video on YouTube and tried to get Scratch running on our Docker server.
I saw that it works on your website https://machinelearningforkids.co.uk/scratch/.
For now, I've tried getting Scratch running on Docker.
Unfortunately, I keep getting the "Invalid Host header" message. Can you give me some advice?
Here's my Dockerfile.
FROM debian:latest
# node.js installieren
RUN apt-get update && apt-get -y dist-upgrade && \
apt-get install -y curl git && \
curl -fsSL https://deb.nodesource.com/setup_23.x -o nodesource_setup.sh && \
bash nodesource_setup.sh && \
apt-get install -y nodejs
# setup the location of the Scratch code
WORKDIR /usr/app
RUN npm install -g [email protected]
# get the base Scratch code
RUN git clone --depth=1 https://github.com/LLK/scratch-vm.git
RUN git clone --depth=1 https://github.com/LLK/scratch-gui.git
# build Scratch vm
WORKDIR /usr/app/scratch-vm
RUN npm install
RUN npm ln
# build Scratch gui
WORKDIR /usr/app/scratch-gui
RUN npm install
RUN npm ln scratch-vm
# copy start.sh
WORKDIR /usr/app
COPY start.sh .
RUN chmod a+x start.sh
EXPOSE 8601
ENTRYPOINT ["./start.sh"]
And here's the docker-compose.yml.
services:
scratch:
build: .
restart: always
ports:
- "90:8601"
volumes:
- ./:/workspace/scratch-demo
Thank you very much for your help,
Mathias
Metadata
Metadata
Assignees
Labels
No labels