forked from scottcame/docker
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
33 lines (28 loc) · 1.04 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
FROM alpine:latest
RUN apk --no-cache add ca-certificates \
autoconf \
automake \
build-base \
glib \
glib-dev \
libc-dev \
libtool \
linux-headers \
bison flex-dev unixodbc unixodbc-dev txt2man man \
unrar p7zip \
git && \
mkdir -p "/opt/mdbdata" && \
cd /tmp && \
git clone https://github.com/brianb/mdbtools.git && \
cd mdbtools && \
autoreconf -i -f && \
./configure --with-unixodbc=/usr/local --mandir=/usr/share/man && make && make install && \
cp README "/opt/mdbdata/" && \
cd /tmp && rm -r mdbtools && \
apk del autoconf automake build-base glib-dev libc-dev unixodbc-dev flex-dev git && \
echo "In order to work interactively, mount a volume to /opt/mdbdata before starting this docker container." >> "/opt/mdbdata/README" && \
echo "Example: docker run -it --rm -v /path/to/host/directory:/opt/mdbdata rillke/mdbtools-docker bash" >> "/opt/mdbdata/README"
COPY scripts/* /usr/bin
# set pager used by `man` to less
ENV PAGER="less"
WORKDIR "/opt/mdbdata"