forked from ScanOC/trunk-player
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (24 loc) · 769 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
FROM python:3.12
RUN apt-get update && \
apt-get -y install nginx redis-server ssl-cert tzdata && \
rm -rf /var/lib/apt/lists/*
RUN mkdir -p /app/trunkplayer
WORKDIR /app/trunkplayer
# set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
ENV CRYPTOGRAPHY_DONT_BUILD_RUST=1
# install dependencies
ADD requirements.txt /app/trunkplayer
RUN pip install --upgrade pip && pip install -r requirements.txt
RUN mkdir -p /var/log/trunk-player/
# Make SSL
RUN make-ssl-cert generate-default-snakeoil --force-overwrite
# copy project
#COPY . .
ADD . /app/trunkplayer
RUN rm -f /etc/nginx/sites-enabled/default
COPY trunk_player/trunk_player.nginx.docker /etc/nginx/conf.d/nginx.conf
EXPOSE 80
EXPOSE 443
ENTRYPOINT ["./entrypoint.sh"]