Skip to content

Commit

Permalink
Added dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
byt3bl33d3r committed Jun 29, 2020
1 parent cb32df5 commit 193fe94
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
tests
Dockerfile
*.pyc
*.pyo
*.pyd
__pycache__
*_valid_accounts.txt
.vscode
.venv
.github
2 changes: 1 addition & 1 deletion .github/workflows/crackmapexec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CrackMapExec Tests & Build
on: [push]

jobs:
test:
build:
name: CrackMapExec Tests on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
Expand Down
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM python:3-alpine

ENV LANG=C.UTF-8
ENV LC_ALL=C.UTF-8
ENV PIP_NO_CACHE_DIR=off

WORKDIR /usr/src/crackmapexec

RUN apk update && \
apk add --no-cache build-base libffi-dev libxml2-dev libxslt-dev openssl-dev

COPY requirements.txt .

RUN pip3 install --no-cache-dir -r requirements.txt

COPY . .

RUN python setup.py install

ENTRYPOINT [ "cme" ]

0 comments on commit 193fe94

Please sign in to comment.