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:
-
Secrets. Values from Glitch's
.envmay not be in the export. Collect them from wherever you kept them, or create new keys. -
Assets. Files uploaded through Glitch's assets panel were served from Glitch's CDN, not from your
project. If your HTML points to those URLs, download what you still can and put the files in
public/. -
.data/. Glitch kept this folder across restarts. Containers on APPISH have no persistent disk, so a SQLite file there is reset on every deploy. For data that matters, move to a hosted database.
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.