Skip to content

Commit

Permalink
Switch Docker Image to Ubuntu 24.04
Browse files Browse the repository at this point in the history
- change Debian 12 to Ubuntu 24.04
- remove DEBIAN_FRONTEND var
- add python3-pip package
- add symlink for "python"
- add workaround for venv
  • Loading branch information
dpamnezia committed Oct 8, 2024
1 parent 12d8cbb commit f9d4674
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM python:3.12.5-slim-bookworm AS exporter
ARG DEBIAN_FRONTEND=noninteractive
RUN pip3 install --no-cache-dir \
FROM ubuntu:24.04 AS exporter
RUN apt-get update && \
apt-get install python3-pip -y && \
pip3 install --no-cache-dir --break-system-packages \
prometheus_client==0.20.0 \
python-decouple==3.8 \
requests==2.32.3
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY: all ci docker_build docker_retag docker_login docker_push

VERSION := 2.4.0
VERSION := 2.5.0
PROJECT_NAME ?= amneziavpn/amneziawg-exporter
DOCKER_BUILDKIT ?= 1
DOCKER_REGISTRY ?= docker.io
Expand Down
2 changes: 1 addition & 1 deletion exporter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

import logging
import sys
Expand Down

0 comments on commit f9d4674

Please sign in to comment.