mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 12:22:47 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			32 lines
		
	
	
		
			500 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			500 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
FROM python:3.6-alpine
 | 
						|
 | 
						|
 | 
						|
EXPOSE 5000
 | 
						|
 | 
						|
 | 
						|
ENV FLASK_APP=opaque.py
 | 
						|
 | 
						|
 | 
						|
RUN apk add \
 | 
						|
    build-base \
 | 
						|
    git \
 | 
						|
    postgresql-dev
 | 
						|
 | 
						|
 | 
						|
RUN adduser -D opaque
 | 
						|
USER opaque
 | 
						|
WORKDIR /home/opaque
 | 
						|
 | 
						|
 | 
						|
COPY app app
 | 
						|
COPY migrations migrations
 | 
						|
COPY config.py opaque.py requirements.txt ./
 | 
						|
RUN python -m venv venv && \
 | 
						|
    venv/bin/pip install -r requirements.txt
 | 
						|
 | 
						|
# add wait for it
 | 
						|
RUN git clone https://github.com/vishnubob/wait-for-it.git
 | 
						|
 | 
						|
COPY docker-entrypoint.sh /usr/local/bin/
 | 
						|
ENTRYPOINT ["docker-entrypoint.sh"]
 |