| 1 |
FROM ubuntu:24.04 |
| 2 |
|
| 3 |
ENV CI=true |
| 4 |
ARG TARGETPLATFORM |
| 5 |
|
| 6 |
RUN apt-get update && apt-get upgrade -y && apt-get install -y wget |
| 7 |
|
| 8 |
RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \ |
| 9 |
wget https://install.fastnetmon.com/installer -O installer; \ |
| 10 |
elif [ "$TARGETPLATFORM" = "linux/arm64" ]; then \ |
| 11 |
wget https://install.fastnetmon.com/installer_arm64 -O installer; \ |
| 12 |
fi && \ |
| 13 |
chmod +x installer && \ |
| 14 |
./installer -install_community_edition |
| 15 |
|
| 16 |
LABEL org.opencontainers.image.source=https://github.com/pavel-odintsov/fastnetmon |
| 17 |
|
| 18 |
CMD ["/opt/fastnetmon-community/app/bin/fastnetmon"] |