kopia lustrzana https://github.com/dgtlmoon/changedetection.io
				
				
				
			Tweaks to docker layout
							rodzic
							
								
									9c0c8bf6aa
								
							
						
					
					
						commit
						cf345dc567
					
				| 
						 | 
				
			
			@ -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
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -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"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
		Ładowanie…
	
		Reference in New Issue