Public Access
1
0

clean up docker config

This commit is contained in:
2025-08-09 19:35:58 -04:00
parent 092a397a32
commit 91443479ff
7 changed files with 24 additions and 84 deletions

View File

@@ -1,10 +1,8 @@
FROM node:lts-alpine
ENV NODE_ENV=production
WORKDIR /usr/src/app
COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"]
RUN npm install --production --silent && mv node_modules ../
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 8080
RUN chown -R node /usr/src/app
USER node
CMD [ "npx", "@11ty/eleventy", "--serve"]
CMD [ "npx", "@11ty/eleventy", "--serve" ]