This commit is contained in:
parent
c05154cad9
commit
ab6594b353
2 changed files with 38 additions and 0 deletions
23
.drone.yml
Normal file
23
.drone.yml
Normal 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
15
Dockerfile
Normal 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"]
|
Loading…
Reference in a new issue