Free Astro hosting

Reverhost runs Astro, a content-focused web framework, in an always-on container built from your Dockerfile, for $0. No credit card is needed, and your agent can deploy it with one instruction.

Last updated November 25, 2026

What you get

  • An always-on container with 256 MB of RAM and 0.5 CPU
  • A URL at <app-slug>.easyhost.fun, plus custom domains with HTTPS
  • One Postgres 16 database and one S3 bucket per project
  • 2 apps per project, with a 128 MB database and 256 MB of storage

How Astro builds and runs

Every app builds from a Dockerfile stored on the app. For Astro, start from the Node.js template (ezhst build dockerfile template node) and adjust it.

StepWhat your Dockerfile runs
Buildnpm run build, which runs astro build
Startnode ./dist/server/entry.mjs
Runtime envPORT=3000 and HOSTNAME=0.0.0.0 from Reverhost, NODE_ENV=production from the Dockerfile

Install @astrojs/node in standalone mode and use on-demand rendering where you need a server. Then set the Node.js template's last line to node ./dist/server/entry.mjs.

astro.config.mjs
import { defineConfig } from "astro/config";
import node from "@astrojs/node";

export default defineConfig({
  output: "server",
  adapter: node({ mode: "standalone" }),
});

The Dockerfile

Dockerfile
FROM node:22-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN --mount=type=secret,id=appenv,target=/run/secrets/appenv sh -c 'set -a; . /run/secrets/appenv; set +a; npm run build'
ENV NODE_ENV=production PORT=3000 HOST=0.0.0.0
EXPOSE 3000
CMD ["node", "./dist/server/entry.mjs"]

The build step mounts your variables as a secret, so they are available while Astro builds without ending up in the image.

Deploy it

Save the Dockerfile in your project folder, then run:

npx ezhst projects create my-project --link
npx ezhst apps create my-app
npx ezhst link --project <project-slug> --app <app-slug>
npx astro add node
npx ezhst build dockerfile set -f Dockerfile
npx ezhst env import .env
npx ezhst deploy

Limits and caveats

A purely static Astro site has no Node server, so it needs the Node adapter, or a Dockerfile that serves dist with a small static file server.

Apps run in one region, with no edge network, preview deployments or Git integration. One build runs at a time per app, with up to 10 builds a day on the free plan.

Next steps

See the Astro hub for every Astro guide, or free Astro hosting for what is included. To let an agent do this for you, read deploy Astro with Claude Code.

Frequently asked questions

Is Astro hosting on Reverhost really free?

Yes. It costs $0 per month with no credit card and no trial period, within the published limits.

Does my Astro app sleep when idle?

No. Reverhost apps run in an always-on container and do not sleep when idle.

Do I need a Dockerfile for Astro?

Yes. Every app builds from a Dockerfile stored on the app. Start from ezhst build dockerfile template node, adjust the build and start lines, and upload it with ezhst build dockerfile set -f Dockerfile. A Dockerfile in your repository is not used until you upload it.

Start for free

Install the skill, choose Global or Local, then tell your agent to deploy. No credit card, no config files.

$npx ezhst skill install