24 lines
		
	
	
		
			512 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			512 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
FROM python:3.8-alpine
 | 
						|
 | 
						|
RUN adduser -S fabcal
 | 
						|
 | 
						|
RUN apk add --no-cache build-base libuv-dev libffi-dev yarn && \
 | 
						|
    pip3 install -U poetry
 | 
						|
 | 
						|
RUN install -d -o fabcal /app
 | 
						|
 | 
						|
USER fabcal
 | 
						|
 | 
						|
COPY poetry.lock pyproject.toml package.json yarn.lock /app/
 | 
						|
 | 
						|
WORKDIR /app/
 | 
						|
 | 
						|
RUN poetry install --only main && \
 | 
						|
    yarn install
 | 
						|
 | 
						|
COPY fabcal /app/fabcal/
 | 
						|
COPY static/ /app/static/
 | 
						|
COPY templates/ /app/templates/
 | 
						|
 | 
						|
ENTRYPOINT ["poetry", "run", "uvicorn", "fabcal.app:app", "--host", "0.0.0.0", "--port", "5000", "--use-colors"]
 |