udpate dockerfile
This commit is contained in:
parent
145ae85120
commit
c572c0a804
11
Dockerfile
11
Dockerfile
|
@ -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"]
|
|
||||||
|
|
Loading…
Reference in New Issue