Hello world: how every project starts

Every great project start with a single step. The blog post is the first iteration. In addition it wil help me to get a working production image in an Astrojs project.

For anyone who is interested, I package an astrojs project up with the following Dockerfile

FROM node:20 as build

WORKDIR /app

COPY package*.json ./
RUN npm install

COPY . .
RUN npm run build

FROM caddy:2-alpine
COPY --from=build /app/dist /srv
EXPOSE 80

CMD ["caddy", "file-server", "--root", "/srv"]

My theme is based on the Dante theme for astrojs. I really like how minimal and content centered it is, whilst not boring. I modified it slightly for my wishes.

if you want to get started with this theme in production, you can check it out and add the Dockerfile above.

git clone https://github.com/JustGoodUI/dante-astro-theme
cd dante-astro-theme

# Add the docker file

docker build . -t blog
docker run -p 80:80 blog

I still got a large Todo list, but this is the first win.

A quick tip, always go to production fast and adjust later.