Automate the build
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Michel Roux 2020-04-09 10:27:42 +02:00
parent cd896f4dad
commit f08157266f
2 changed files with 20 additions and 8 deletions

13
.drone.yml Normal file
View File

@ -0,0 +1,13 @@
kind: pipeline
name: default
steps:
- name: docker
image: plugins/docker
settings:
repo: xefir/pynyaata
auto_tag: true
username:
from_secret: docker_username
password:
from_secret: docker_password

View File

@ -1,12 +1,11 @@
FROM debian
FROM python
ENV DEBIAN_FRONTEND noninteractive
ENV LANG C.UTF-8
RUN apt-get update && apt-get -y upgrade && \
apt-get -y install python3 python3-pip locales \
python3-flask python3-flask-sqlalchemy python3-flask-httpauth python3-flaskext.wtf \
python3-pymysql python3-requests python3-requests-toolbelt python3-bs4 python3-dotenv && \
pip3 install cloudscraper && \
COPY . /app
WORKDIR /app
RUN apt-get update && apt-get -y upgrade && apt-get -y install locales && \
printf "en_US.UTF-8 UTF-8\nfr_FR.UTF-8 UTF-8\n" > /etc/locale.gen && \
locale-gen && rm -rf /var/lib/apt/lists/*
locale-gen && rm -rf /var/lib/apt/lists/* && \
pip install -r requirements.txt
CMD ["python", "app.py"]