Tweaks to docker layout

pull/1/head
Leigh Morresi 4 years ago
parent 9c0c8bf6aa
commit cf345dc567

@ -1,4 +1,4 @@
FROM python:3.8-buster FROM python:3.8-slim
COPY requirements.txt /tmp/requirements.txt COPY requirements.txt /tmp/requirements.txt
RUN pip3 install -r /tmp/requirements.txt RUN pip3 install -r /tmp/requirements.txt

@ -11,6 +11,8 @@ services:
volumes: volumes:
- ./backend:/app - ./backend:/app
- ./datastore:/datastore - ./datastore:/datastore
environment:
- PYTHONUNBUFFERED=1 #https://stackoverflow.com/questions/58701233/docker-logs-erroneously-appears-empty-until-container-stops
ports: ports:
- "127.0.0.1:5000:5000" - "127.0.0.1:5000:5000"

@ -2,13 +2,18 @@ version: "2"
services: services:
backend: backend:
build: ./backend/production-docker build: .
image: dgtlmoon/changedetection.io:0.1 image: dgtlmoon/changedetection.io:0.1
container_name: changedetection.io container_name: changedetection.io
volumes: volumes:
- ./backend:/app - ./backend:/app
- ./datastore:/datastore - ./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: ports:
- "127.0.0.1:5000:5000" - "127.0.0.1:5000:5000"

@ -15,6 +15,6 @@ bleach==3.2.1
html5lib==0.9999999 # via bleach html5lib==0.9999999 # via bleach
timeago timeago
html2text html2text
urlextract
# @notes # @notes
# - Dont install socketio, it interferes with flask_socketio # - Dont install socketio, it interferes with flask_socketio
Loading…
Cancel
Save