diff --git a/Dockerfile b/Dockerfile index b12841ce..a9d2664d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,9 +17,6 @@ COPY website/ ./ FROM node:23-alpine -# Set working directory -WORKDIR /app - # Create a non-root user and group RUN addgroup -S appgroup && adduser -S appuser -G appgroup @@ -32,6 +29,9 @@ COPY --chown=appuser:appgroup --from=build /app /app # Switch to non-root user USER appuser +# Set working directory +WORKDIR /app + # Expose the port the app runs on EXPOSE 3000