diff --git a/Dockerfile b/Dockerfile index 2a4b11b..1a0eee7 100644 --- a/Dockerfile +++ b/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"]