initial re-commit to wipe commit histoy due to public repo
This commit is contained in:
		
							
								
								
									
										23
									
								
								backend/Dockerfile
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										23
									
								
								backend/Dockerfile
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,23 @@
 | 
			
		||||
# syntax=docker/dockerfile:1.4
 | 
			
		||||
FROM python:3-alpine AS builder
 | 
			
		||||
 | 
			
		||||
WORKDIR /code
 | 
			
		||||
COPY requirements.txt /code
 | 
			
		||||
RUN target=/root/.cache/pip \
 | 
			
		||||
    pip3 install -r requirements.txt
 | 
			
		||||
 | 
			
		||||
COPY . .
 | 
			
		||||
 | 
			
		||||
ENV FLASK_APP app.py
 | 
			
		||||
 | 
			
		||||
# This might be scary to leave on
 | 
			
		||||
#ENV FLASK_ENV development
 | 
			
		||||
 | 
			
		||||
ENV FLASK_RUN_PORT 8000
 | 
			
		||||
ENV FLASK_RUN_HOST 0.0.0.0
 | 
			
		||||
RUN flask --version
 | 
			
		||||
 | 
			
		||||
EXPOSE 8000
 | 
			
		||||
 | 
			
		||||
CMD ["flask", "run"]
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user