This commit is contained in:
Marco Ochse 2018-05-19 19:43:02 +00:00
parent 48b8915689
commit eb55ad5870
2 changed files with 14 additions and 15 deletions

View file

@ -1,20 +1,18 @@
FROM alpine
# Install packages
RUN apk -U upgrade && \
apk add autoconf \
RUN apk -U --no-cache add \
autoconf \
automake \
bash \
build-base \
git \
libtool \
procps \
py-pip \
python \
python-dev && \
# Install libemu
git clone https://github.com/buffer/libemu /root/libemu/ && \
git clone --depth=1 https://github.com/buffer/libemu /root/libemu/ && \
cd /root/libemu/ && \
autoreconf -vi && \
./configure && \
@ -22,23 +20,24 @@ RUN apk -U upgrade && \
make install && \
# Install libemu python wrapper
pip install pylibemu && \
pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir pylibemu && \
# Install mailoney from git
git clone https://github.com/awhitehatter/mailoney /opt/mailoney && \
git clone --depth=1 https://github.com/awhitehatter/mailoney /opt/mailoney && \
# Setup user, groups and configs
addgroup -g 2000 mailoney && \
adduser -S -H -s /bin/bash -u 2000 -D -g 2000 mailoney && \
adduser -S -H -s /bin/ash -u 2000 -D -g 2000 mailoney && \
chown -R mailoney:mailoney /opt/mailoney && \
# Clean up
apk del autoconf \
automake \
build-base \
git \
py-pip \
python-dev && \
apk del --purge autoconf \
automake \
build-base \
git \
py-pip \
python-dev && \
rm -rf /root/* && \
rm -rf /var/cache/apk/*

View file

@ -1,4 +1,4 @@
version: '2.2'
version: '2.3'
networks:
mailoney_local: