HBMonv2/Dockerfile

35 lines
826 B
Docker
Raw Normal View History

2024-02-26 20:13:46 +00:00
###############################################################################
# Copyright (C) 2024 Shane aka, ShaYmez <support@gb7nr.co.uk>
2024-02-27 00:20:34 +00:00
# Version 2.0.1
2024-02-26 20:13:46 +00:00
###############################################################################
2022-05-17 01:50:29 +01:00
FROM python:alpine3.20
2022-05-17 01:50:29 +01:00
2024-06-13 23:05:51 +01:00
RUN adduser -D -u 54000 radio
WORKDIR /hbmon
# Install build dependencies
RUN apk add --no-cache git gcc musl-dev libffi-dev openssl-dev cargo
# Copy only requirements first for better layer caching
COPY requirements.txt .
RUN pip install --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt
# Remove build dependencies
RUN apk del git gcc musl-dev libffi-dev openssl-dev cargo
# Copy the application code
COPY . .
RUN chown -R radio /hbmon
COPY entrypoint /entrypoint
RUN chmod +x /entrypoint
2022-05-17 01:50:29 +01:00
2024-02-26 20:13:46 +00:00
USER radio
ENTRYPOINT ["/entrypoint"]