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.
		
		
		
		
		
			
		
			
				
	
	
		
			44 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Docker
		
	
			
		
		
	
	
			44 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Docker
		
	
FROM python:3.10-slim-buster
 | 
						|
 | 
						|
ENV PYTHONUNBUFFERED 1
 | 
						|
ENV PYTHONDONTWRITEBYTECODE 1
 | 
						|
 | 
						|
RUN apt-get update \
 | 
						|
    # dependencies for building Python packages
 | 
						|
    && apt-get install -y build-essential \
 | 
						|
    # psycopg2 dependencies
 | 
						|
    && apt-get install -y libpq-dev \
 | 
						|
    # Additional dependencies
 | 
						|
    && apt-get install -y telnet netcat \
 | 
						|
    # cleaning up unused files
 | 
						|
    && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
 | 
						|
    && rm -rf /var/lib/apt/lists/*
 | 
						|
 | 
						|
# Requirements are installed here to ensure they will be cached.
 | 
						|
COPY ./requirements.txt /requirements.txt
 | 
						|
RUN pip install -r /requirements.txt
 | 
						|
 | 
						|
COPY ./compose/local/fastapi/entrypoint /entrypoint
 | 
						|
RUN sed -i 's/\r$//g' /entrypoint
 | 
						|
RUN chmod +x /entrypoint
 | 
						|
 | 
						|
COPY ./compose/local/fastapi/start /start-web
 | 
						|
RUN sed -i 's/\r$//g' /start-web
 | 
						|
RUN chmod +x /start-web
 | 
						|
 | 
						|
COPY ./compose/local/fastapi/celery/worker/start /start-celeryworker
 | 
						|
RUN sed -i 's/\r$//g' /start-celeryworker
 | 
						|
RUN chmod +x /start-celeryworker
 | 
						|
 | 
						|
COPY ./compose/local/fastapi/celery/beat/start /start-celerybeat
 | 
						|
RUN sed -i 's/\r$//g' /start-celerybeat
 | 
						|
RUN chmod +x /start-celerybeat
 | 
						|
 | 
						|
COPY ./compose/local/fastapi/celery/flower/start /start-flower
 | 
						|
RUN sed -i 's/\r$//g' /start-flower
 | 
						|
RUN chmod +x /start-flower
 | 
						|
 | 
						|
WORKDIR /app
 | 
						|
 | 
						|
ENTRYPOINT ["/entrypoint"]
 |