1
0
mirror of https://github.com/craigerl/aprsd.git synced 2024-11-22 08:04:53 -05:00

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 ;\ pip3 install cryptography ;\
fi fi
# Install aprsd
RUN pip3 install aprsd==$APRSD_PIP_VERSION
# Ensure /config is there with a default config file # Ensure /config is there with a default config file
USER root USER root
# Install aprsd
RUN pip3 install aprsd==$APRSD_PIP_VERSION
RUN mkdir -p /config RUN mkdir -p /config
RUN aprsd sample-config > /config/aprsd.conf RUN aprsd sample-config > /config/aprsd.conf
RUN chown -R $APRS_USER:$APRS_USER /config RUN chown -R $APRS_USER:$APRS_USER /config
RUN chown -R $APRS_USER:$APRS_USER $HOME
# override this to run another configuration # override this to run another configuration
ENV CONF default ENV CONF default

View File

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