test
continuous-integration/drone/push Build is passing Details

pictuga 2021-11-21 19:56:39 +01:00
parent 6ec3fb47d1
commit 52463c9ebe
5 changed files with 22 additions and 2 deletions

View File

@ -7,4 +7,5 @@ RUN pip3 install --no-cache-dir /app[full] gunicorn
USER 1000:1000 USER 1000:1000
ENTRYPOINT ["/app/docker-entry.sh"] ENTRYPOINT ["/bin/sh", "/app/docker-entry.sh"]
CMD []

View File

@ -92,6 +92,10 @@ Then execute
docker-compose build --no-cache --pull docker-compose build --no-cache --pull
``` ```
Using Heroku free tier:
[Deploy to Heroku](https://heroku.com/deploy?template=https://github.com/pictuga/morss)
## Run ## Run
morss will auto-detect what "mode" to use. morss will auto-detect what "mode" to use.

1
app.json 100644
View File

@ -0,0 +1 @@
{"stack": "container"}

View File

@ -1,7 +1,9 @@
#! /bin/sh #! /bin/sh
echo "$@"
if [ ! -z "$1" ]; then if [ ! -z "$1" ]; then
morss $@ morss $@
else else
gunicorn --bind 0.0.0.0:8000 -w 4 --preload --access-logfile - morss gunicorn --bind 0.0.0.0:${PORT:-8000} -w 4 --preload --access-logfile - morss
fi fi

12
heroku.yml 100644
View File

@ -0,0 +1,12 @@
setup:
config:
DEBUG: 1
CACHE: diskcache
CACHE_SIZE: 1073741824
build:
docker:
app: Dockerfile
run:
app: sh /app/docker-entry.sh