Added dockerfile

main
byt3bl33d3r 2020-06-29 09:54:00 -06:00
parent cb32df5a65
commit 193fe94c4a
3 changed files with 31 additions and 1 deletions

10
.dockerignore Normal file
View File

@ -0,0 +1,10 @@
tests
Dockerfile
*.pyc
*.pyo
*.pyd
__pycache__
*_valid_accounts.txt
.vscode
.venv
.github

View File

@ -3,7 +3,7 @@ name: CrackMapExec Tests & Build
on: [push] on: [push]
jobs: jobs:
test: build:
name: CrackMapExec Tests on ${{ matrix.os }} name: CrackMapExec Tests on ${{ matrix.os }}
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:

20
Dockerfile Normal file
View File

@ -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" ]