Spaces:
Build error
Build error
# Use an official Node.js runtime as a parent image | |
FROM node:18-bullseye | |
# Set the working directory in the container | |
WORKDIR /usr/src/app | |
# Copy the package.json and package-lock.json files | |
COPY package.json package-lock.json ./ | |
# Install dependencies | |
RUN npm install | |
# Copy the rest of the application code | |
COPY . . | |
# Build the Docusaurus website | |
RUN npm run build | |
# Expose the port on which the app will run | |
EXPOSE 3000 | |
# Command to run the Docusaurus development server | |
CMD ["npx", "serve", "-s", "build", "-l", "3000"] | |