create config dir, clean cache

This commit is contained in:
Jakub Vavřík
2021-08-30 23:07:00 +02:00
parent bc95e72e99
commit 044fe5eb54

View File

@@ -6,7 +6,9 @@ RUN curl https://packages.microsoft.com/config/ubuntu/18.04/multiarch/prod.list
cp ./microsoft.gpg /etc/apt/trusted.gpg.d/ &&\
apt-get update &&\
apt-get install -y moby-engine nano aziot-edge &&\
mkdir -p /etc/aziot/config &&\
touch /etc/aziot/config/config.toml &&\
ln -s /etc/aziot/config/config.toml /etc/aziot/config.toml
ln -s /etc/aziot/config/config.toml /etc/aziot/config.toml &&\
rm -rf /var/lib/{apt,dpkg,cache,log}/
# connect CM to /etc/aziot/config.toml
# iotedge config apply