You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			25 lines
		
	
	
		
			504 B
		
	
	
	
		
			Docker
		
	
			
		
		
	
	
			25 lines
		
	
	
		
			504 B
		
	
	
	
		
			Docker
		
	
| ARG DISTRO=alpine:3.14.3
 | |
| FROM $DISTRO
 | |
| ARG VERSION
 | |
| ENV TZ Etc/UTC
 | |
| LABEL version=$VERSION
 | |
| 
 | |
| 
 | |
| RUN mkdir -p /app
 | |
| WORKDIR /app
 | |
| 
 | |
| COPY requirements.txt requirements.txt
 | |
| RUN apk add --no-cache curl python3 py3-pip \
 | |
|     && pip3 install -r requirements.txt
 | |
| 
 | |
| COPY server.py ./server.py
 | |
| COPY main.py ./main.py
 | |
| COPY flavors /data/flavors
 | |
| COPY templates /data/templates
 | |
| COPY static ./static
 | |
| 
 | |
| EXPOSE 80/tcp
 | |
| 
 | |
| CMD gunicorn -w 4 -b :80 --access-logfile - --error-logfile - --preload main:app
 | |
| RUN echo $VERSION >> /version
 |