docker-htpcmanager/Dockerfile.aarch64
2022-08-24 11:16:08 -04:00

60 lines
1.4 KiB
Docker
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.15
# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="notdriz"
ENV PIPFLAGS="--ignore-installed --no-cache-dir -U --find-links https://wheel-index.linuxserver.io/alpine-3.15/"
RUN \
echo "**** install build packages ****" && \
apk add --no-cache --virtual=build-dependencies \
autoconf \
automake \
cargo \
freetype-dev \
g++ \
gcc \
jpeg-dev \
lcms2-dev \
libffi-dev \
libpng-dev \
libwebp-dev \
libxml2-dev \
libxslt-dev \
linux-headers \
make \
openjpeg-dev \
openssl-dev \
python3-dev \
tiff-dev \
zlib-dev && \
echo "**** install runtime packages ****" && \
apk add --no-cache \
git \
jq \
py3-pip \
python3 \
vnstat && \
echo "**** install app ****" && \
git clone --depth 1 https://github.com/HTPC-Manager/HTPC-Manager.git /app/htpcmanager && \
echo "**** install pip packages ****" && \
sed -i -e '/psutil\|pyopenssl\|pySMART/d' /app/htpcmanager/requirements.txt && \
pip3 install -U pip setuptools wheel && \
pip install ${PIPFLAGS} -r /app/htpcmanager/requirements.txt && \
echo "**** cleanup ****" && \
apk del --purge \
build-dependencies && \
rm -rf \
/root/.cache \
/tmp/*
# add local files
COPY root/ /
# ports and volumes
EXPOSE 8085
VOLUME /config