Minimize image size

pull/1/head
Jason Kendall 2019-11-25 19:23:59 -05:00
parent 068061a30a
commit 52d9e23037
2 changed files with 15 additions and 6 deletions

View File

@ -1,6 +1,8 @@
# docker-misp
A (nearly) production ready Dockered MISP
This is based on some of the work from the DSCO docker build.
Getting Started:
- Copy the "default" configs removing "default" and edit the files in `server-configs`
- Note: A dry run without this step will try and make a sane DEV build for docker-compose
@ -9,3 +11,10 @@ Getting Started:
- Login with
- User: admin@admin.test
- Password: admin
Server image notes:
- File Sizes
- Original Image: 3.17GB
- First attempt: 2.24GB
- Remove chown: 1.56GB
- Saved: 1.61GB

View File

@ -2,7 +2,7 @@ FROM debian:buster-slim
ENV DEBIAN_FRONTEND noninteractive
ARG VERSION=2.4.118
# Based on DCSO Dockererized MISP
# OS Packages
RUN apt-get update; apt-get install -y --no-install-recommends \
sudo \
apache2 \
@ -35,14 +35,14 @@ ARG VERSION=2.4.118
# Download MISP using git in the /var/www/ directory.
# Attention: we replaced the fixed tag with a variable
WORKDIR /var/www
RUN git clone --branch v${MISP_TAG} --depth 1 https://github.com/MISP/MISP.git /var/www/MISP
RUN git clone --branch v${MISP_TAG} --recursive --depth 1 https://github.com/MISP/MISP.git /var/www/MISP
WORKDIR /var/www/MISP
# Make git ignore filesystem permission differences
RUN git config core.filemode false; \
# RUN git config core.filemode false; \
# CakePHP and a lot of other things is included as a submodule of MISP, execute the following commands to let git fetch it:
git submodule update --init --recursive; \
# git submodule update --init --recursive; \
# Make git ignore filesystem permission differences for submodules
git submodule foreach --recursive git config core.filemode false
# git submodule foreach --recursive git config core.filemode false
# Python Modules
# install Mitre's STIX and its dependencies by running the following commands:
@ -122,4 +122,4 @@ ARG VERSION=2.4.118
ENTRYPOINT [ "/entrypoint.sh" ]
# Change Workdirectory
WORKDIR /var/www/MISP
WORKDIR /var/www/MISP