Move your Glitch project to Docker

Updated

Glitch announced in May 2025 that it would stop hosting projects, and on July 8, 2025 the apps went offline. If you downloaded your project before the deadline, you have everything needed to put it back online. A typical Glitch project was a small Node.js app, which is about the easiest thing there is to put in a Docker image.

What's in the export

Unpack the archive. You should see package.json, your server file (often server.js), a public/ or views/ folder and possibly .data/. Check three things before you start:

1. Add a Dockerfile

Glitch ran npm start and passed the port in process.env.PORT. Keep both:

FROM node:22-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install --omit=dev
COPY . .
ENV PORT=3000
EXPOSE 3000
CMD ["npm", "start"]

Glitch used older Node versions for many projects. If npm install fails on Node 22, pin the version your package.json asks for in engines, for example FROM node:18-alpine.

2. Try it locally

docker build -t my-glitch-app .
docker run --rm -p 3000:3000 my-glitch-app

Open http://localhost:3000. If it works here, it will work online.

3. Push it

docker buildx build --platform linux/amd64 \
  -t push.to.appi.sh/<your-push-id>/app:port_3000 \
  -t push.to.appi.sh/<your-push-id>/app:env64_API_KEY___<base64url-value> \
  --push .

Your push address is on the APPISH Dashboard. A few seconds later the project is live at https://<your-slot>.appi.sh.

Bots and webhooks

Many Glitch projects were Discord or Slack bots kept awake by pinging services. On APPISH nothing goes to sleep while the slot runs, so no pinger is needed. A bot does need to answer HTTP on its port so the health check passes; the Discord bot guide shows the five lines that do it.

A free slot is perfect for getting a project back and showing it around: 4 hours per deployment, extendable with one click. For a project that should stay up like it did on Glitch, use a paid slot.

Related