nginx unit works
This commit is contained in:
		@@ -2,23 +2,22 @@
 | 
			
		||||
## pull official base image
 | 
			
		||||
FROM nginx/unit:1.22.0-python3.9
 | 
			
		||||
EXPOSE 80
 | 
			
		||||
 | 
			
		||||
ENV AM_DOCKER_INSTANCE Yes
 | 
			
		||||
## set work directory
 | 
			
		||||
WORKDIR /usr/src/app
 | 
			
		||||
WORKDIR /app
 | 
			
		||||
 | 
			
		||||
## install dependencies
 | 
			
		||||
COPY ./requirements.txt .
 | 
			
		||||
RUN pip install -r requirements.txt
 | 
			
		||||
 | 
			
		||||
## copy project
 | 
			
		||||
COPY ./CalibreWebCompanion ./CalibreWebCompanion
 | 
			
		||||
COPY ./deployment/entrypoints/* /docker-entrypoint.d/
 | 
			
		||||
 | 
			
		||||
# perms
 | 
			
		||||
RUN chown -R unit:unit /usr/src/app 
 | 
			
		||||
RUN chown -R unit:unit /app 
 | 
			
		||||
COPY ./deployment/entrypoints/* /docker-entrypoint.d/
 | 
			
		||||
RUN chmod +x /docker-entrypoint.d/start.sh
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# 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' \
 | 
			
		||||
# -v '/home/MassiveAtoms/Desktop/logs:/app/data' \
 | 
			
		||||
# -v '/home/MassiveAtoms/windows/Users/MassiveAtoms/Documents/Calibre Library/:/app/calibredir' \
 | 
			
		||||
# --name cw calibreweb:1.0
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user