1
0
mirror of https://github.com/craigerl/aprsd.git synced 2024-11-05 08:21:18 -05:00
aprsd/docker/build.sh
Hemna c177748340 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:20:34 -05:00

12 lines
358 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/hemna6969/aprsd:$VERSION \
-f Dockerfile .