-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
33 lines (29 loc) · 891 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
25
26
27
28
29
30
31
32
33
FROM ghcr.io/linuxserver/baseimage-alpine:3.17
LABEL maintainer="mdhiggins <[email protected]>"
ENV PAS_PATH /usr/local/pas
ENV PAS_UPDATE false
# get python3 and git, and install python libraries
RUN \
apk add --no-cache \
git \
python3 \
py3-pip && \
# make directory
mkdir ${PAS_PATH} && \
# download repo
git clone https://github.com/mdhiggins/PlexAutoSkip.git ${PAS_PATH} && \
# install pip, venv, and set up a virtual self contained python environment
python3 -m pip install --user --upgrade pip && \
python3 -m pip install --user virtualenv && \
python3 -m virtualenv ${PAS_PATH}/venv && \
${PAS_PATH}/venv/bin/pip install -r ${PAS_PATH}/setup/requirements.txt && \
# link config
ln -s /config ${PAS_PATH}/config && \
# cleanup
apk del --purge && \
rm -rf \
/root/.cache \
/tmp/*
VOLUME /config
# COPY extras/ ${PAS_PATH}/
COPY root/ /