Update docker/Dockerfile
This commit is contained in:
@@ -20,12 +20,10 @@ FROM node:22-alpine AS final
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy the built assets from the build stage.
|
# Copy the built assets from the build stage.
|
||||||
# Your angular.json defines the base output path as "preview"
|
|
||||||
COPY --from=build /app/preview ./preview
|
COPY --from=build /app/preview ./preview
|
||||||
|
|
||||||
# Expose the standard Angular SSR port
|
# Expose the standard Angular SSR port
|
||||||
EXPOSE 4000
|
EXPOSE 4000
|
||||||
|
|
||||||
# Start the Node.js SSR server
|
# Start the Node.js SSR server
|
||||||
# Note: Angular 17+ SSR usually outputs the server file to <base>/server/server.mjs
|
|
||||||
CMD ["node", "preview/server/server.mjs"]
|
CMD ["node", "preview/server/server.mjs"]
|
||||||
Reference in New Issue
Block a user