Skip to content

Commit

Permalink
init task executor service
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjay920 committed Feb 12, 2024
1 parent 61c211a commit cc38d10
Show file tree
Hide file tree
Showing 16 changed files with 5,559 additions and 0 deletions.
24 changes: 24 additions & 0 deletions services/backend/task_executor/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM python:3.10.7-slim

# Set the working directory in the container to /app
WORKDIR /app

# First, add only the requirements file (to leverage Docker cache)
ADD requirements.txt /app/

# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
RUN spacy download en_core_web_sm
RUN playwright install
RUN playwright install-deps


# Add the current directory contents into the container at /app
# This is done after installing dependencies to leverage Docker's cache
ADD . /app

# Set environment variables
ENV OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES

# Run app.py when the container launches
CMD ["celery", "-A", "app.tasks", "worker", "--loglevel=info"]
Empty file.
Empty file.
Loading

0 comments on commit cc38d10

Please sign in to comment.