2020-12-06 11:55:59 +01:00
|
|
|
FROM alpine:latest
|
|
|
|
|
2020-12-07 16:02:58 +01:00
|
|
|
RUN apk add --update --no-cache \
|
2021-06-11 01:06:59 +02:00
|
|
|
bash python3 py3-pip nginx uwsgi uwsgi-python3 certbot certbot-nginx npm jq
|
|
|
|
|
|
|
|
RUN npm install -g web-push
|
2020-12-07 16:02:58 +01:00
|
|
|
|
2020-12-06 11:55:59 +01:00
|
|
|
|
|
|
|
|
|
|
|
WORKDIR /root/ftracker
|
|
|
|
|
|
|
|
COPY ftracker/ ./ftracker/
|
|
|
|
COPY setup.py .
|
|
|
|
COPY README.md .
|
|
|
|
COPY LICENSE.md .
|
|
|
|
COPY res/config.deploy.ini /etc/ftracker/config.ini
|
|
|
|
|
2020-12-07 16:02:58 +01:00
|
|
|
RUN pip3 install wheel
|
2020-12-06 11:55:59 +01:00
|
|
|
RUN pip3 install .
|
|
|
|
|
2020-12-07 16:02:58 +01:00
|
|
|
|
|
|
|
|
|
|
|
COPY web/ /var/www/html/ftracker/
|
|
|
|
COPY res/ ./res/
|
|
|
|
|
|
|
|
COPY res/ftracker.nossl.nginx.conf /etc/nginx/conf.d/ftracker.conf
|
2020-12-06 11:55:59 +01:00
|
|
|
RUN rm /etc/nginx/conf.d/default.conf
|
2020-12-07 16:02:58 +01:00
|
|
|
|
|
|
|
RUN mkdir -p /etc/ftracker /var/ftracker \
|
|
|
|
&& chown -R nginx:nginx /etc/ftracker /var/ftracker
|
|
|
|
|
|
|
|
|
2020-12-06 11:55:59 +01:00
|
|
|
|
2020-12-07 17:46:50 +01:00
|
|
|
STOPSIGNAL SIGINT
|
2020-12-06 11:55:59 +01:00
|
|
|
RUN chmod +x ./res/docker-entrypoint.sh
|
|
|
|
ENTRYPOINT [ "./res/docker-entrypoint.sh" ]
|