-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dockerize python-threatexchange (#1291)
* Define a basic Docker container based on the official Python container * Enable persistent config and state with a Docker volume * Make the state dir configurable via environment variable `TX_STATEDIR`
- Loading branch information
Showing
3 changed files
with
36 additions
and
1 deletion.
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,12 @@ | ||
FROM python:3.11-bullseye | ||
|
||
WORKDIR /usr/src/threatexchange | ||
COPY . . | ||
RUN pip install . | ||
RUN rm -rf /usr/src/threatexchange | ||
|
||
ENV TX_STATEDIR=/var/lib/threatexchange | ||
|
||
VOLUME ["/var/lib/threatexchange"] | ||
CMD ["threatexchange"] | ||
ENTRYPOINT ["/usr/local/bin/threatexchange"] |
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
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