forked from ApexWeed/orpheusbetter-crawler
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
34 lines (25 loc) · 766 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
34
# Set the base image
FROM python:3.11-alpine3.20
MAINTAINER StarKayC
# Set the working directory
WORKDIR /
# Update System, Install packages & Clone Repo
RUN apk update && \
apk add git mktorrent flac lame sox && \
git clone https://github.com/StarKayC/orpheusbetter-crawler app
# Set the working directory
WORKDIR /app
# Create User, Create Folders, Set Permissions
RUN adduser -D orpheus && \
mkdir /config /data /torrent && \
chown orpheus:orpheus -R /config /data /torrent /app
# Set User
USER orpheus
# Set Home Folder, Timezone, Hostname
ENV HOME=/config \
TZ=Etc/UTC \
HOSTNAME=orpheusbetter
# Install pip packages
RUN pip install -r requirements.txt
# Have EntryPoint run app using command option
ENTRYPOINT ["/bin/sh", "-c"]