Outils/Logiciels

Installer Docusaurus avec Docker

Installer Docusaurus avec Docker

As you know, this blog is powered by Docusaurus.

I'm writing blog posts in Markdown files (one post = one .md file) and Docusaurus will convert them into HTML pages.

In this first article, we're going to learn how to install Docusaurus... ouch, sorry, not install Docusaurus as we're going to use Docker to simplify our lives.

Fichiers :

Dockerfile

FROM node:21-alpine

RUN npx create-docusaurus@latest /app classic && \
    chown -R node:node /app

USER node

WORKDIR /app

RUN cd /app && yarn install

COPY . .

CMD ["yarn", "start", "--host", "0.0.0.0"]

Related Articles

VsCode et ses raccourcis clavier

VsCode et ses raccourcis clavier

Affinity

Affinity

Publier un document avec Docusaurus