-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (23 loc) · 1.04 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
FROM graag/lgogdownloader:latest
MAINTAINER Konrad Klimaszewski <[email protected]>
RUN apt-get -y update \
&& apt-get -y install git python3 python3-pip supervisor \
&& pip3 --no-cache-dir install json-logging-py gunicorn gevent \
&& cd /opt \
&& git clone https://github.com/graag/lgogwebui.git \
&& cd /opt/lgogwebui \
&& pip3 --no-cache-dir install -r requirements.txt \
&& apt-get -y remove git python3-pip \
&& apt-get -y autoremove \
&& apt-get -y --no-install-recommends install python3-pip python3-setuptools \
&& rm -rf /var/lib/apt/lists/*
# && pip install --upgrade pip setuptools \
#VOLUME ["/home/user/.cache/lgogdownloader", "/home/user/.config/lgogdownloader", "/home/user/GOG"]
WORKDIR "/home/user"
# https://sebest.github.io/post/protips-using-gunicorn-inside-a-docker-image/
COPY supervisord.conf /etc/supervisor/supervisord.conf
COPY logging.conf /etc/gunicorn/logging.conf
COPY gunicorn.conf /etc/gunicorn/gunicorn.conf
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
EXPOSE 8585
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]