-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from heliomar-pena/dev
release: Version 0.0.1
- Loading branch information
Showing
8 changed files
with
175 additions
and
274 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 @@ | ||
__pycache__ |
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,29 @@ | ||
FROM python:3.12-bookworm AS nsfw_proxy | ||
|
||
RUN mkdir -p /home/app | ||
|
||
COPY . /home/app | ||
|
||
WORKDIR /home/app | ||
|
||
# Installing rust. Needed for installing mitmproxy as python dependency | ||
RUN apt update -y | ||
RUN apt install make curl git build-essential scdoc -y | ||
RUN curl --proto '=https' -tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | ||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
|
||
RUN python -m venv nsfw_proxy | ||
RUN nsfw_proxy/bin/pip install -r requirements.txt | ||
|
||
EXPOSE 8080 | ||
VOLUME /root/.mitmproxy | ||
|
||
ENTRYPOINT [ "./nsfw_proxy/bin/mitmdump", "-s", "nsfw.py", "--listen-port", "8080" ] | ||
|
||
FROM nsfw_proxy AS nsfw_proxy_bonk | ||
|
||
RUN git clone https://git.sr.ht/~jamesponddotco/bonk && cd /home/app/bonk && make && make install; | ||
|
||
WORKDIR /home/app | ||
|
||
ENTRYPOINT [ "./nsfw_proxy/bin/mitmdump", "-s", "nsfw.py", "--set", "command=bonk <dir>", "--set", "level=0.2", "--listen-port", "8080" ] |
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
Oops, something went wrong.