-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (34 loc) · 1.09 KB
/
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
35
36
37
38
39
40
41
42
FROM python:3.9.18-alpine3.18
#temp change for upstream issue with libressl
LABEL maintainer="sushiman42"
#Bash is in here cause POSIX shell was throwing errors and I'm lazy
RUN apk add --no-cache --update --progress \
bash \
musl \
build-base \
bash \
git \
libressl-dev \
musl-dev \
rust \
cargo \
libffi-dev
RUN pip install -q --no-cache-dir --upgrade pip && \
pip install \
twisted \
certifi \
pyopenssl \
service_identity \
idna \
cryptography
RUN mkdir /app/syncplay -p
#Last working version was 1.6.6
RUN git clone https://github.com/Syncplay/syncplay -b v1.7.0 /app/syncplay
COPY ./entrypoint.sh /entrypoint.sh
# Run as non-root user
RUN addgroup -g 800 -S syncplay && \
adduser -u 800 -S syncplay -G syncplay && \
chown -R syncplay:syncplay /app/syncplay
USER syncplay
WORKDIR /app/syncplay
ENTRYPOINT ["/entrypoint.sh"]