Fix for Docker Build

main
byt3bl33d3r 2020-09-20 09:23:16 -06:00
parent f66fa44068
commit 359dac9173
3 changed files with 34 additions and 11 deletions

View File

@ -4,7 +4,34 @@ Dockerfile
*.pyo *.pyo
*.pyd *.pyd
__pycache__ __pycache__
*_valid_accounts.txt
.vscode .vscode
.venv .venv
.github .github
build
bin
dist
*.egg-info
cme/data/powersploit/Recon/Dictionaries
cme/data/powersploit/Exfiltration/NTFSParser
cme/data/powersploit/CodeExecution/Invoke-ReflectivePEInjection_Resources
cme/data/powersploit/Exfiltration/LogonUser
cme/data/powersploit/Tests
cme/data/netripper/DLL
cme/data/netripper/Metasploit
cme/data/netripper/NetRipper
cme/data/netripper/Win32
cme/data/netripper/Release
cme/data/netripper/minhook
cme/data/netripper/x64
cme/data/netripper/*.pdf
cme/data/netripper/*.sln
cme/data/invoke-vnc/winvnc
cme/data/invoke-vnc/vncdll
cme/data/invoke-vnc/pebytes.ps1
cme/data/invoke-vnc/ReflectiveDLLInjection
cme/data/invoke-vnc/*.py
cme/data/invoke-vnc/*.bat
cme/data/invoke-vnc/*.msbuild
cme/data/invoke-vnc/*.sln
cme/data/RID-Hijacking/modules
cme/data/RID-Hijacking/slides

View File

@ -1,4 +1,4 @@
FROM python:3-alpine FROM python:3.8-slim
ENV LANG=C.UTF-8 ENV LANG=C.UTF-8
ENV LC_ALL=C.UTF-8 ENV LC_ALL=C.UTF-8
@ -6,15 +6,11 @@ ENV PIP_NO_CACHE_DIR=off
WORKDIR /usr/src/crackmapexec WORKDIR /usr/src/crackmapexec
RUN apk update && \ RUN apt-get update && \
apk add --no-cache build-base libffi-dev libxml2-dev libxslt-dev openssl-dev openssl apt-get install -y libffi-dev libxml2-dev libxslt-dev libssl-dev openssl
COPY requirements.txt .
RUN pip3 install --no-cache-dir -r requirements.txt
COPY . . COPY . .
RUN python setup.py install RUN pip install .
ENTRYPOINT [ "cme" ] ENTRYPOINT [ "cme" ]

View File

@ -75,4 +75,4 @@ ipython = "^7.18.1"
[build-system] [build-system]
requires = ["poetry>=0.12"] requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api" build-backend = "poetry.masonry.api"