mirror of
https://github.com/craigerl/aprsd.git
synced 2024-09-28 08:06:37 -04:00
Updated Dockerfile and build.sh
This patch updates the main Dockerfile to work in multi-architecture build. Dockerfile now builds and install aprsd from pypi, not github.
This commit is contained in:
parent
c177748340
commit
9f66774541
@ -13,7 +13,9 @@ ENV GID=${GID:-1000}
|
|||||||
ENV LC_ALL=C.UTF-8
|
ENV LC_ALL=C.UTF-8
|
||||||
ENV LANG=C.UTF-8
|
ENV LANG=C.UTF-8
|
||||||
|
|
||||||
#RUN apt update
|
RUN apt update
|
||||||
|
RUN apt install -y git build-essential
|
||||||
|
RUN apt install -y libffi-dev python3-dev libssl-dev
|
||||||
#RUN apt-get install -y apt-utils
|
#RUN apt-get install -y apt-utils
|
||||||
#RUN apt-get install -y pkg-config
|
#RUN apt-get install -y pkg-config
|
||||||
#RUN apt upgrade -y
|
#RUN apt upgrade -y
|
||||||
@ -26,7 +28,7 @@ RUN addgroup --gid $GID $APRS_USER
|
|||||||
RUN useradd -m -u $UID -g $APRS_USER $APRS_USER
|
RUN useradd -m -u $UID -g $APRS_USER $APRS_USER
|
||||||
|
|
||||||
# Install aprsd
|
# Install aprsd
|
||||||
RUN /usr/local/bin/pip3 install aprsd
|
RUN /usr/local/bin/pip3 install aprsd==1.6.0
|
||||||
|
|
||||||
# Ensure /config is there with a default config file
|
# Ensure /config is there with a default config file
|
||||||
USER root
|
USER root
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
# Official docker image build script.
|
||||||
|
|
||||||
VERSION="1.6.0"
|
VERSION="1.6.0"
|
||||||
|
|
||||||
@ -6,6 +7,6 @@ VERSION="1.6.0"
|
|||||||
docker buildx build --push --platform linux/arm/v7,linux/arm/v6,linux/arm64,linux/amd64 \
|
docker buildx build --push --platform linux/arm/v7,linux/arm/v6,linux/arm64,linux/amd64 \
|
||||||
-t hemna6969/aprsd:$VERSION \
|
-t hemna6969/aprsd:$VERSION \
|
||||||
-t hemna6969/aprsd:latest \
|
-t hemna6969/aprsd:latest \
|
||||||
-t 192.168.1.3:5000/hemna6969/aprsd:latest \
|
-t harbor.hemna.com/hemna6969/aprsd:latest \
|
||||||
-t 192.168.1.3:5000/hemna6969/aprsd:$VERSION \
|
-t harbor.hemna.com/hemna6969/aprsd:$VERSION \
|
||||||
-f Dockerfile .
|
-f Dockerfile .
|
||||||
|
Loading…
Reference in New Issue
Block a user