Refactor Dockerfile: Remove non-root user switch to streamline the build process.
This commit is contained in:
@@ -31,9 +31,6 @@ COPY --from=base /usr/src/app/node_modules ./node_modules
|
|||||||
# Copy any additional files needed for runtime
|
# Copy any additional files needed for runtime
|
||||||
COPY --from=base /usr/src/app/static ./static
|
COPY --from=base /usr/src/app/static ./static
|
||||||
|
|
||||||
# Switch to non-root user
|
|
||||||
USER sveltekit
|
|
||||||
|
|
||||||
# Expose the port that the app runs on
|
# Expose the port that the app runs on
|
||||||
EXPOSE 5173
|
EXPOSE 5173
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user