14
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								Dockerfile
									
									
									
									
									
								
							| @@ -1,15 +1,13 @@ | |||||||
| # Radicale Dockerfile | # Radicale Dockerfile | ||||||
| # | # | ||||||
| # VERSION 0.2 | # VERSION 0.3 | ||||||
|  |  | ||||||
| FROM 	debian:latest | FROM 	alpine:latest | ||||||
|  |  | ||||||
| ENV 	DEBIAN_FRONTEND noninteractive |  | ||||||
|  |  | ||||||
| # Base packages | # Base packages | ||||||
| RUN 	apt-get update -qq && apt-get upgrade -y -qq | RUN	apk update && \ | ||||||
| RUN 	apt-get install -y --no-install-recommends git ca-certificates python2.7 python-setuptools python-pip \ | 	apk upgrade && \ | ||||||
| 	build-essential libffi-dev python-dev | 	apk add ca-certificates git python python-dev py-setuptools py-pip build-base libffi-dev | ||||||
|  |  | ||||||
| # Radicale installation | # Radicale installation | ||||||
| RUN 	pip install passlib bcrypt | RUN 	pip install passlib bcrypt | ||||||
| @@ -20,7 +18,7 @@ COPY	config /data/config | |||||||
| RUN	cd /data/radicale && python2.7 setup.py install | RUN	cd /data/radicale && python2.7 setup.py install | ||||||
|  |  | ||||||
| # User | # User | ||||||
| RUN 	useradd -d /home/radicale -m radicale && \ | RUN 	adduser -h /home/radicale -D radicale && \ | ||||||
| 	mkdir -p /home/radicale/.config && \ | 	mkdir -p /home/radicale/.config && \ | ||||||
|  	ln -s /data/config /home/radicale/.config/radicale && \ |  	ln -s /data/config /home/radicale/.config/radicale && \ | ||||||
|  	chown -R radicale:radicale /data/config && \ |  	chown -R radicale:radicale /data/config && \ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Guillaume Ayoub
					Guillaume Ayoub