We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1aea686 commit 7f8fcb5Copy full SHA for 7f8fcb5
1 file changed
docker/Dockerfile.sql_to_arc
@@ -65,13 +65,12 @@ FROM alpine:3.23.3
65
66
WORKDIR /middleware
67
68
-# Copy the entire directory created by --onedir
69
-COPY --from=binary-builder /build/dist/sql_to_arc /middleware/sql_to_arc
70
-
71
-# Create non-root user and group and fix permissions
+# Create non-root user and group
72
RUN addgroup -S sql_to_arc && \
73
- adduser -S sql_to_arc -G sql_to_arc && \
74
- chown -R sql_to_arc:sql_to_arc /middleware
+ adduser -S sql_to_arc -G sql_to_arc
+
+# Copy the entire directory created by --onedir with correct ownership
+COPY --chown=sql_to_arc:sql_to_arc --from=binary-builder /build/dist/sql_to_arc /middleware/sql_to_arc
75
76
USER sql_to_arc
77
0 commit comments