-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
43 lines (40 loc) · 1.22 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
FROM amd64/alpine:latest
MAINTAINER https://github.com/p-w
LABEL Description="gatling - a high performance web server (built with dietlibc)"
# avoid starting FTP and SMB if not needed (otherwise on by default)
ENV GATLING_OPTIONS="-F -S"
EXPOSE 80
RUN \
echo "**** install build packages ****" && \
#apk add --no-cache --virtual=build-dependencies \
apk add --no-cache \
make \
gcc \
cvs \
zlib \
zlib-dev \
zlib-static \
libc-dev \
openssl \
openssl-dev && \
echo "**** download build packages ****" && \
cd /tmp && \
cvs -Q -d :pserver:[email protected]:/cvs -z9 co dietlibc && \
cvs -Q -d :pserver:[email protected]:/cvs -z9 co libowfat && \
cvs -Q -d :pserver:[email protected]:/cvs -z9 co gatling && \
echo "**** build runtime packages ****" && \
cd dietlibc && \
make && \
make install bin-x86_64/diet && \
ln -s /opt/diet/bin/diet /usr/local/bin/diet && \
cd ../libowfat && \
diet make && \
make install && \
cd ../gatling && \
diet make gatling && \
mv gatling / && \
echo "**** cleanup ****" && \
apk del make gcc cvs zlib-dev libc-dev openssl-dev && \
rm -rf /tmp/* && \
rm -rf /var/cache/apk/*
ENTRYPOINT /gatling ${GATLING_OPTIONS}