Update Dockerfile

This commit is contained in:
Joshua Schnabel
2020-04-28 22:13:57 +02:00
committed by GitHub
parent 57667dbc05
commit a85c756a58

View File

@ -6,8 +6,8 @@ COPY scripts/*.sh /tmp/
# Install tools, create Node-RED app and data dir, add user and set rights # Install tools, create Node-RED app and data dir, add user and set rights
RUN set -ex && \ RUN set -ex && \
apt-get update && \ apt-get update && \
apt-get upgrade && \ apt-get upgrade -y && \
apt-get intsall \ apt-get intsall -y \
bash \ bash \
tzdata \ tzdata \
iputils \ iputils \
@ -32,7 +32,7 @@ COPY package.json .
FROM base AS build FROM base AS build
# Install Build tools # Install Build tools
RUN apt-get update && apt-get intsall buildtools build-base linux-headers udev python && \ RUN apt-get -y intsall buildtools build-base linux-headers udev python && \
npm install --unsafe-perm --no-update-notifier --only=production && \ npm install --unsafe-perm --no-update-notifier --only=production && \
/tmp/remove_native_gpio.sh && \ /tmp/remove_native_gpio.sh && \
cp -R node_modules prod_node_modules cp -R node_modules prod_node_modules