@@ -34,11 +34,10 @@ COPY package.json .
3434FROM base AS build
3535
3636# Install Build tools
37- RUN apk add --no-cache --virtual buildtools build-base linux-headers udev python
38-
39- RUN npm install --unsafe-perm --no-update-notifier --only=production
40- RUN /tmp/remove_native_gpio.sh
41- RUN cp -R node_modules prod_node_modules
37+ RUN apk add --no-cache --virtual buildtools build-base linux-headers udev python && \
38+ npm install --unsafe-perm --no-update-notifier --only=production && \
39+ /tmp/remove_native_gpio.sh && \
40+ cp -R node_modules prod_node_modules
4241
4342#### Stage RELEASE #####################################################################################################
4443FROM base AS RELEASE
@@ -51,10 +50,10 @@ ARG TAG_SUFFIX=default
5150
5251LABEL org.label-schema.build-date=${BUILD_DATE} \
5352 org.label-schema.docker.dockerfile=".docker/Dockerfile.alpine" \
54- org.label-schema.license="Apache License 2.0" \
53+ org.label-schema.license="Apache- 2.0" \
5554 org.label-schema.name="Node-RED" \
5655 org.label-schema.version=${BUILD_VERSION} \
57- org.label-schema.description="Node-RED is a programming tool for wiring together hardware devices, APIs and online services in new and interesting ways ." \
56+ org.label-schema.description="Low-code programming for event-driven applications ." \
5857 org.label-schema.url="https://nodered.org" \
5958 org.label-schema.vcs-ref=${BUILD_REF} \
6059 org.label-schema.vcs-type="Git" \
@@ -63,11 +62,14 @@ LABEL org.label-schema.build-date=${BUILD_DATE} \
6362 authors="Dave Conway-Jones, Nick O'Leary, James Thomas, Raymond Mouthaan"
6463
6564COPY --from=build /usr/src/node-red/prod_node_modules ./node_modules
66- RUN chown -R node-red:node-red /usr/src/node-red
6765
68- # Install devtools & Clean up
69- RUN /tmp/install_devtools.sh && \
70- rm /tmp/* && rm /usr/bin/qemu-$QEMU_ARCH-static
66+ # Chown, install devtools & Clean up
67+ RUN chown -R node-red:node-red /usr/src/node-red && \
68+ /tmp/install_devtools.sh && \
69+ rm /tmp/* && \
70+ rm /usr/bin/qemu-$QEMU_ARCH-static
71+
72+ USER node-red
7173
7274# Env variables
7375ENV NODE_RED_VERSION=$NODE_RED_VERSION
0 commit comments