static file issue, otherwise working
This commit is contained in:
		@@ -1,29 +1,24 @@
 | 
			
		||||
 | 
			
		||||
## pull official base image
 | 
			
		||||
FROM python:3.8.3-alpine
 | 
			
		||||
EXPOSE 8080
 | 
			
		||||
FROM nginx/unit:1.22.0-python3.9
 | 
			
		||||
EXPOSE 80
 | 
			
		||||
 | 
			
		||||
## set work directory
 | 
			
		||||
WORKDIR /usr/src/app
 | 
			
		||||
 | 
			
		||||
## install dependencies
 | 
			
		||||
RUN pip install --upgrade pip
 | 
			
		||||
COPY ./requirements.txt .
 | 
			
		||||
RUN pip install -r requirements.txt
 | 
			
		||||
RUN apk add nginx supervisor
 | 
			
		||||
 | 
			
		||||
# do nginx stuff
 | 
			
		||||
RUN adduser -D -g 'www' www
 | 
			
		||||
RUN mkdir -p /run/nginx
 | 
			
		||||
COPY ./deployment/nginx.conf /etc/nginx/
 | 
			
		||||
 | 
			
		||||
## copy project
 | 
			
		||||
COPY ./CalibreWebCompanion ./CalibreWebCompanion
 | 
			
		||||
copy ./deployment/startupscript.py ./
 | 
			
		||||
## gunicorn borks started with supervisord
 | 
			
		||||
COPY ./deployment/supervisord.conf /etc/
 | 
			
		||||
ENTRYPOINT /usr/bin/supervisord -c /etc/supervisord.conf
 | 
			
		||||
COPY ./deployment/entrypoints/* /docker-entrypoint.d/
 | 
			
		||||
# perms
 | 
			
		||||
RUN chown -R unit:unit /usr/src/app 
 | 
			
		||||
RUN chmod +x /docker-entrypoint.d/start.sh
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# docker run --publish 8000:80 \
 | 
			
		||||
# -v '/home/massiveatoms/Desktop/logs:/usr/src/app/data' \
 | 
			
		||||
# -v '/run/media/massiveatoms/1AEEEA6EEEEA421D1/Documents and Settings/MassiveAtoms/Documents/Calibre Library/:/usr/src/app/calibredir' \
 | 
			
		||||
# --name cw calibreweb:1.0.1
 | 
			
		||||
# docker run --publish 80:80 \
 | 
			
		||||
# -v '/home/MassiveAtoms/Desktop/logs:/usr/src/app/data' \
 | 
			
		||||
# -v '/home/MassiveAtoms/windows/Users/MassiveAtoms/Documents/Calibre Library/:/usr/src/app/calibredir' \
 | 
			
		||||
# --name cw calibreweb:1.0
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user