This repository was archived by the owner on Aug 25, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.aarch64
More file actions
49 lines (45 loc) · 1.31 KB
/
Copy pathDockerfile.aarch64
File metadata and controls
49 lines (45 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.15
# set version label
ARG BUILD_DATE
ARG VERSION
ARG NNTP2NNTP_RELEASE
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="chbmb"
# install build packages
RUN \
apk add --no-cache --virtual=build-dependencies \
build-base \
cargo \
libffi-dev \
libressl-dev \
openssl-dev \
python2-dev && \
# install runtime packages
apk add --no-cache \
libffi \
libressl \
python2 && \
# install pip
curl -o /tmp/get-pip.py https://bootstrap.pypa.io/pip/2.7/get-pip.py && \
python /tmp/get-pip.py && \
# install nntp2nntp via pip package manager
if [ -z ${NNTP2NNTP_RELEASE+x} ]; then \
NNTP2NNTP_RELEASE=$(curl -sX GET "https://api.github.com/repos/linuxserver/nntp2nntp/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
fi && \
pip install --no-cache-dir -U --find-links https://wheel-index.linuxserver.io/alpine-3.15/ \
typing && \
pip install --no-cache-dir -U \
https://github.com/linuxserver/nntp2nntp/archive/${NNTP2NNTP_RELEASE}.tar.gz \
service_identity && \
# cleanup
apk del --purge \
build-dependencies && \
rm -rf \
$HOME/.cache \
/tmp/*
# add local files
COPY root/ /
# ports and volumes
EXPOSE 1563
VOLUME /config