-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
5,559 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Oops, something went wrong.