Skip to content

Commit 3282a39

Browse files
author
Dave Conway-Jones
committed
fix ownership
1 parent a734b5c commit 3282a39

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

.docker/Dockerfile.alpine

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ LABEL org.label-schema.build-date=${BUILD_DATE} \
6767
org.label-schema.arch=${ARCH} \
6868
authors="Dave Conway-Jones, Nick O'Leary, James Thomas, Raymond Mouthaan"
6969

70+
COPY --from=build /usr/src/node-red/prod_node_modules ./node_modules
71+
RUN chown -R node-red:node-red /usr/src/node-red
72+
7073
# Install devtools & Clean up
7174
RUN /tmp/install_devtools.sh && \
7275
rm /tmp/* && rm /usr/bin/qemu-$QEMU_ARCH-static
7376

74-
COPY --from=build /usr/src/node-red/prod_node_modules ./node_modules
75-
RUN chown -R node-red:node-red /usr/src/node-red
76-
7777
# Env variables
7878
ENV NODE_RED_VERSION=$NODE_RED_VERSION
7979
ENV FLOWS=flows.json

docker-custom/Dockerfile.custom

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,12 @@ LABEL org.label-schema.build-date=${BUILD_DATE} \
6262
org.label-schema.arch=${ARCH} \
6363
authors="Dave Conway-Jones, Nick O'Leary, James Thomas, Raymond Mouthaan"
6464

65-
# Install devtools & Clean up
66-
RUN /tmp/install_devtools.sh && \
67-
rm /tmp/*
68-
6965
COPY --from=build /usr/src/node-red/prod_node_modules ./node_modules
7066
RUN chown -R node-red:node-red /usr/src/node-red
7167

72-
USER node-red
68+
# Install devtools & Clean up
69+
RUN /tmp/install_devtools.sh && \
70+
rm /tmp/* && rm /usr/bin/qemu-$QEMU_ARCH-static
7371

7472
# Env variables
7573
ENV NODE_RED_VERSION=$NODE_RED_VERSION

0 commit comments

Comments
 (0)