diff --git a/Dockerfile b/Dockerfile index d0cc9f0..94283c1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,12 +27,13 @@ RUN npm run build ################################################ FROM node:lts-alpine -COPY --from=build /app/package*.json ./ -COPY --from=build /app/dist ./dist - # Install dependencies but skip dev dependencies +COPY --from=build /app/package*.json ./ RUN npm install --only=production +# Copy the app +COPY --from=build /app/dist ./dist + # Start the app ENTRYPOINT ["npm", "run"] CMD ["start"] \ No newline at end of file