Skip to content

Commit fa84e75

Browse files
committed
Adding celery Dockerfile
1 parent 1cb887c commit fa84e75

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

Dockerfile.celery

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM python:3.9.9-buster
2+
3+
RUN apt-get update \
4+
&& apt-get install -y --no-install-recommends apt-utils libsasl2-dev libssl-dev \
5+
vim libldap2-dev python-dev libfuzzy-dev net-tools python3-psycopg2 git osslsigncode apache2-utils \
6+
&& apt-get clean \
7+
&& rm -rf /var/lib/apt/lists/*
8+
9+
RUN pip install --upgrade pip
10+
11+
WORKDIR /app
12+
13+
# copy the requirement files earlier
14+
COPY urNode-backend/requirements /app/requirements
15+
RUN pip install --no-cache-dir --compile -r requirements/run-requirements.txt
16+
17+
COPY urNode-backend/ /app

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ services:
3838
celery:
3939
build:
4040
context: ./
41-
dockerfile: ./Dockerfile
41+
dockerfile: ./Dockerfile.celery
4242
container_name: celery_server
4343
command: celery -A Uturn worker --loglevel=info --without-gossip --without-mingle --without-heartbeat -Ofair --pool=solo
4444
volumes:

0 commit comments

Comments
 (0)