15 lines
293 B
Docker
15 lines
293 B
Docker
FROM node:20-slim
|
|
|
|
# Set the working directory
|
|
WORKDIR /usr/src/app
|
|
|
|
# Copy package.json and install dependencies
|
|
COPY package.json package-lock.json ./
|
|
RUN npm install
|
|
|
|
# Copy source files
|
|
COPY . .
|
|
|
|
# Default command to run Eleventy
|
|
CMD ["npx", "@11ty/eleventy", "--serve", "--port", "3000"]
|