Tweaks to docker layout

This commit is contained in:
Leigh Morresi
2021-01-28 14:45:30 +01:00
parent 9c0c8bf6aa
commit cf345dc567
4 changed files with 10 additions and 3 deletions
@@ -1,4 +1,4 @@
FROM python:3.8-buster
FROM python:3.8-slim
COPY requirements.txt /tmp/requirements.txt
RUN pip3 install -r /tmp/requirements.txt
+2
View File
@@ -11,6 +11,8 @@ services:
volumes:
- ./backend:/app
- ./datastore:/datastore
environment:
- PYTHONUNBUFFERED=1 #https://stackoverflow.com/questions/58701233/docker-logs-erroneously-appears-empty-until-container-stops
ports:
- "127.0.0.1:5000:5000"
+6 -1
View File
@@ -2,13 +2,18 @@ version: "2"
services:
backend:
build: ./backend/production-docker
build: .
image: dgtlmoon/changedetection.io:0.1
container_name: changedetection.io
volumes:
- ./backend:/app
- ./datastore:/datastore
# autoreload not working :(
environment:
- FLASK_ENV=development
- PYTHONUNBUFFERED=1 #https://stackoverflow.com/questions/58701233/docker-logs-erroneously-appears-empty-until-container-stops
ports:
- "127.0.0.1:5000:5000"
@@ -15,6 +15,6 @@ bleach==3.2.1
html5lib==0.9999999 # via bleach
timeago
html2text
urlextract
# @notes
# - Dont install socketio, it interferes with flask_socketio