Skip to content

Commit

Permalink
feat: update docker python to 3.11 (#150)
Browse files Browse the repository at this point in the history
* Update black.yml

* Update dockerfile to python 3.11

* Update Dockerfile

* Update README.md

---------

Co-authored-by: Spencer Comfort <[email protected]>
  • Loading branch information
SpencerIsGiddy and SpencerIsGiddy authored Jul 19, 2023
1 parent e98f3ea commit 9230952
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.11'
- name: Install Black
run: pip install black
- name: Run black --check .
run: black --check .
run: black --check .
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM python:3.10-alpine as builder
FROM python:3.11-alpine AS builder

# Create app directory
RUN python -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

FROM python:3.10-alpine
FROM python:3.11-alpine
COPY --from=builder /opt/venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"

Expand All @@ -17,4 +17,4 @@ COPY . .

# Exports
ENV SM_COMMAND "docker run punksecurity/dnsreaper --"
ENTRYPOINT [ "python3", "/app/main.py" ]
ENTRYPOINT [ "python3", "/app/main.py" ]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ You can run DNS Reaper in a pipeline, feeding it a list of domains that you inte

## Usage

To run DNS Reaper, you can use the docker image or run it with python 3.10.
To run DNS Reaper, you can use the docker image or run it with python 3.11.

**Findings are returned in the output and more detail is provided in a local "results.csv" file. We also support json output as an option.**

Expand Down

0 comments on commit 9230952

Please sign in to comment.