udpate dockerfile

This commit is contained in:
Chris W 2023-10-06 17:43:12 -06:00
parent 145ae85120
commit c572c0a804
1 changed files with 1 additions and 10 deletions

View File

@ -34,13 +34,4 @@ ENV PUBLIC_MATOMO_SITE_ID=${PUBLIC_MATOMO_SITE_ID}
RUN npm run build RUN npm run build
# Serve the built project CMD ["npm", "run", "preview"]
FROM node:20.7.0-alpine as serve
WORKDIR /app
COPY --from=build /app/build .
COPY --from=build /app/package.json .
COPY --from=build /app/node_modules ./node_modules
CMD ["node", "index.js"]