1
0
mirror of https://github.com/craigerl/aprsd.git synced 2024-09-19 11:46:35 -04:00
aprsd/docker/build.sh
Hemna f0034fc517 Updated Dockerfile for multiplatform builds
This patch updates the main Dockerfile container build to use
the python:3.8-slim base image and installs aprsd from pypi.
This also results in a much smaller image.

Also added support for multiarchitecture builds so the same Dockerfile
builds for raspberry pi and linux/amd64
2021-02-16 10:05:11 -05:00

12 lines
357 B
Bash
Executable File

#!/bin/bash
VERSION="1.6.0"
# Use this script to locally build the docker image
docker buildx build --push --platform linux/arm/v7,linux/arm/v6,linux/arm64,linux/amd64 \
-t hemna6969/aprsd:$VERSION \
-t hemna6969/aprsd:latest \
-t 192.168.1.3:5000/hemna6969/aprsd:latest \
-t 192.168.1.3:5000/hemna669/aprsd:$VERSION \
-f Dockerfile .