Add CI build
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Armin Friedl 2020-10-26 17:39:44 +01:00
parent c05154cad9
commit ab6594b353
2 changed files with 38 additions and 0 deletions

23
.drone.yml Normal file
View file

@ -0,0 +1,23 @@
kind: pipeline
type: docker
name: default
steps:
- name: webpack
image: node
commands:
- npm install
- npm run publish
- name: publish-container
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
dockerfile: Dockerfile
purge: true
pull_impage: true
repo: arminfriedl/snip
tags: latest

15
Dockerfile Normal file
View file

@ -0,0 +1,15 @@
FROM python:3.8-alpine
RUN apk update && apk add su-exec \
&& pip3 install pipenv
COPY . /app
WORKDIR /app
ENV FLASK_APP=snip
ENV FLASK_ENV=production
RUN pipenv install
EXPOSE 5000
CMD ["pipenv", "run", "flask", "run", "--host=0.0.0.0"]