Spaces:
Sleeping
Sleeping
| # Use the official Node.js 18.2-slim image from Docker Hub | |
| FROM node:18.2-slim | |
| # Set the working directory to /app | |
| WORKDIR /app | |
| # Copy the package.json and package-lock.json | |
| COPY package*.json ./ | |
| # Install any needed packages specified in package.json | |
| RUN npm install | |
| # Make port 3000 available to the world outside this container | |
| EXPOSE 3000 | |
| # make sure to mount the site on /app/site folder | |
| WORKDIR /app/site | |
| CMD ["sh", "-c", "npx docusaurus start --host 0.0.0.0"] |