Add Dockerfile
This commit is contained in:
parent
6140ffe12b
commit
8b3075a09c
10
Dockerfile
10
Dockerfile
|
@ -1,12 +1,14 @@
|
|||
FROM node:20-slim
|
||||
|
||||
# Set the working directory
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY package*.json ./
|
||||
# Copy package.json and install dependencies
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm install
|
||||
|
||||
RUN npm install @11ty/eleventy-navigation
|
||||
|
||||
# Copy source files
|
||||
COPY . .
|
||||
|
||||
CMD ["npx", "@11ty/eleventy", "--serve", "--port", "4000"]
|
||||
# Default command to run Eleventy
|
||||
CMD ["npx", "@11ty/eleventy", "--serve", "--port", "3000"]
|
||||
|
|
Loading…
Reference in New Issue