We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5ff6019 + 7a51bbb commit d1203baCopy full SHA for d1203ba
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 -H -G sql_to_arc 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