1
1
mirror of https://github.com/derogab/ITAvsCOVIDbot synced 2025-02-17 20:10:36 +01:00

Compare commits

..

No commits in common. "30f1023f6c0474cc6b6d07a7a9fba5291453c9e7" and "22da4ff0eaf2b0878b8ecb8b0cdb4440d739d362" have entirely different histories.

2 changed files with 30 additions and 26 deletions

View File

@ -1,26 +1,36 @@
FROM python:3-slim
FROM alpine:latest
# Set working space
WORKDIR /usr/src/app
# Install dependencies
RUN apt-get update \
# Prevent endless waiting
&& DEBIAN_FRONTEND=noninteractive \
RUN apk update \
# Install packages
&& apk add \
tzdata \
build-base freetype-dev libpng-dev openblas-dev \
python3 py3-pip py3-numpy py3-pandas py3-matplotlib \
wkhtmltopdf \
# Set UTC as timezone
&& ln -snf /usr/share/zoneinfo/Europe/Rome /etc/localtime \
# Install APT packages
&& apt-get install -y --fix-missing wkhtmltopdf gfortran \
# Remove tmp files
&& apt-get clean && rm -rf /tmp/* /var/tmp/* \
&& rm -rf /tmp/* /var/tmp/* \
# Add PiWheels support
&& echo "[global]\nextra-index-url=https://www.piwheels.org/simple" >> /etc/pip.conf \
# Upgrade PIP
&& python3 -m pip install --no-cache-dir --upgrade pip
# Copy and install requirements
# Copy requirements
COPY requirements.txt .
RUN python3 -m pip install -r requirements.txt
# Install requirements
RUN apk update \
# Install tmp packages
&& apk add --virtual build-deps gcc python3-dev musl-dev \
# Install PIP packages
&& python3 -m pip install --no-cache-dir -r requirements.txt \
# Delete tmp packages
&& apk del build-deps
# Copy app
COPY . .

View File

@ -1,29 +1,23 @@
<h1 align="center">:it: ITA vs. COVID :microbe:</h1>
<p align="center">
<img src="./assets/images/logo.png" alt="header" width="150px">
</p>
<h3 align="center">Un bot telegram che ti aggiorna sulla battaglia contro il Covid in Italia</h3>
<p align="center">
<a href="https://hub.docker.com/r/derogab/itavscovidbot">
<img src="https://img.shields.io/docker/pulls/derogab/itavscovidbot?label=Downloads&logo=docker" alt="Docker Pulls">
</a>
<a href="https://github.com/derogab/itavscovidbot/actions/workflows/docker-publish.yml">
<img src="https://github.com/derogab/itavscovidbot/actions/workflows/docker-publish.yml/badge.svg" alt="Build & Push Docker Image">
</a>
</p>
## Configurazione
<div align="center">
<img src="./assets/images/logo.png" width="150">
</div>
<div align="center">
<h1 align="center">🇮🇹 ITA vs. COVID 🦠</h1>
Un bot telegram che ti aggiorna sulla battaglia contro il Covid in Italia.
</div>
### Configurazione
Copia tutti i file `.env.sample` nei relativi `.env` con le preferenze personali.
## Avvio
### Avvio
Il bot utilizza [docker](https://www.docker.com/) e [docker-compose](https://docs.docker.com/compose).
```
docker-compose up --build
```
## Crediti
### Crediti
Il bot è stato sviluppato da [@derogab](https://github.com/derogab) e il codice sorgente è pubblicamente disponibile su Github.