-
Notifications
You must be signed in to change notification settings - Fork 35
/
Dockerfile
24 lines (18 loc) · 662 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM python:3.12-slim
# Make the /app dir
RUN mkdir /app
# Set the working directory to /app
WORKDIR /app
# Copy required files to /app
COPY fritzinfluxdb.py requirements.txt /app/
COPY fritzinfluxdb /app/fritzinfluxdb
# Install any needed packages specified in requirements.txt
RUN apt-get update && apt-get install -y --no-install-recommends gcc g++ && \
PYTHONDONTWRITEBYTECODE=1 pip install --no-compile --no-cache-dir -r requirements.txt && \
apt-get remove --yes gcc g++ && \
apt-get clean autoclean && \
apt-get autoremove --yes && \
rm -rf /var/lib/apt/lists/*
# run daemon
CMD [ "python", "/app/fritzinfluxdb.py", "-d" ]
# EOF