Spaces:
Build error
Build error
File size: 532 Bytes
ffdfeff a19b9ae ffdfeff a19b9ae ffdfeff a19b9ae ffdfeff a19b9ae |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# 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"]
|