forked from mitre/caldera
-
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.
* Update Dockerfile * Update docker-compose * Switch to ubuntu focal * Update docker-compose to use timezone * Restore command
- Loading branch information
Showing
3 changed files
with
56 additions
and
18 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,23 @@ | ||
# common | ||
**/README.md | ||
**/CONTRIBUTING.md | ||
docker-compose.yml | ||
Dockerfile | ||
|
||
# git | ||
**/.git | ||
**/.gitattributes | ||
**/.gitignore | ||
**/.gitmodules | ||
**/.github | ||
|
||
# dev | ||
tests/ | ||
**/.codecov.yml | ||
**/.coveragerc | ||
**/.flake8 | ||
**/.pre-commit-config.yaml | ||
**/.travis.yml | ||
**/release.sh | ||
**/requirements-dev.txt | ||
**/tox.ini |
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 |
---|---|---|
@@ -1,8 +1,27 @@ | ||
FROM ubuntu:bionic | ||
FROM ubuntu:focal | ||
|
||
ARG TZ="UTC" | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \ | ||
echo $TZ > /etc/timezone | ||
|
||
WORKDIR /usr/src/app | ||
ADD . /usr/src/app | ||
ENV GOPATH=/usr/bin/go | ||
|
||
RUN apt-get update && \ | ||
apt-get install python3 python3-pip golang git -y && \ | ||
pip3 install --no-cache-dir -r requirements.txt | ||
apt-get -y install python3 python3-pip golang git | ||
|
||
#WIN_BUILD is used to enable windows build in sandcat plugin | ||
ARG WIN_BUILD=false | ||
RUN if [ "$WIN_BUILD" = "true" ] ; then apt-get -y install mingw-w64; fi | ||
|
||
ADD requirements.txt . | ||
|
||
RUN pip3 install --no-cache-dir -r requirements.txt | ||
|
||
ADD . . | ||
|
||
EXPOSE 8888 | ||
EXPOSE 7010 | ||
EXPOSE 7011/udp | ||
EXPOSE 7012 | ||
|
||
ENTRYPOINT ["python3", "server.py"] |
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