All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			
		
			
				
	
	
		
			34 lines
		
	
	
		
			800 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			800 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
FROM node as css
 | 
						|
WORKDIR /app
 | 
						|
COPY . /app
 | 
						|
RUN npm install && \
 | 
						|
    npx tailwindcss -i ./common/input.css -o ./static/base.css --minify
 | 
						|
 | 
						|
FROM python:3.10.9-slim-bullseye
 | 
						|
 | 
						|
ENV VERSION_NUMBER 0.2.5
 | 
						|
ENV PROD 1
 | 
						|
ENV PYTHONUNBUFFERED=1
 | 
						|
 | 
						|
RUN apt update && \
 | 
						|
    apt install -y \
 | 
						|
    bash \
 | 
						|
    vim \
 | 
						|
    curl && \
 | 
						|
    rm -rf /var/lib/apt/lists/*
 | 
						|
 | 
						|
RUN useradd -m --uid 1000 timetracker
 | 
						|
WORKDIR /home/timetracker/app
 | 
						|
COPY . /home/timetracker/app/
 | 
						|
RUN chown -R timetracker:timetracker /home/timetracker/app
 | 
						|
COPY --from=css ./app/static/base.css /home/timetracker/app/static/base.css
 | 
						|
COPY entrypoint.sh /
 | 
						|
RUN chmod +x /entrypoint.sh
 | 
						|
 | 
						|
USER timetracker
 | 
						|
ENV PATH="$PATH:/home/timetracker/.local/bin"
 | 
						|
RUN pip install --no-cache-dir poetry
 | 
						|
RUN poetry install --without dev
 | 
						|
 | 
						|
EXPOSE 8000
 | 
						|
ENTRYPOINT [ "/entrypoint.sh" ] |