Update Dockerfile

This commit is contained in:
Hemna 2023-01-31 17:36:39 +00:00
parent 62e1d69272
commit 8a456cac48
2 changed files with 6 additions and 4 deletions

View File

@ -37,14 +37,14 @@ RUN if [ "${BUILDX_QEMU_ENV}" = "true" -a "$(getconf LONG_BIT)" = "32" ]; then \
pip3 install cryptography ;\
fi
# Install aprsd
RUN pip3 install aprsd==$APRSD_PIP_VERSION
# Ensure /config is there with a default config file
USER root
# Install aprsd
RUN pip3 install aprsd==$APRSD_PIP_VERSION
RUN mkdir -p /config
RUN aprsd sample-config > /config/aprsd.conf
RUN chown -R $APRS_USER:$APRS_USER /config
RUN chown -R $APRS_USER:$APRS_USER $HOME
# override this to run another configuration
ENV CONF default

View File

@ -16,6 +16,7 @@ OPTIONS:
-d Use Dockerfile-dev for a git clone build
-b Branch to use (default = master)
-r Destroy and rebuild the buildx environment
-v aprsd version to build
EOF
}
@ -62,8 +63,9 @@ done
if [ $ALL_PLATFORMS -eq 1 ]
then
PLATFORMS="linux/arm/v7,linux/arm64,linux/amd64"
PLATFORMS="linux/arm64,linux/amd64"
#PLATFORMS="linux/arm/v7,linux/arm/v6,linux/amd64"
#PLATFORMS="linux/arm64"
else
PLATFORMS="linux/amd64"
fi