forked from rjocoleman/docker-alpine-s3fs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (21 loc) · 779 Bytes
/
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
FROM alpine:latest
MAINTAINER "Sherwin Harris <[email protected]>"
# the following ENV need to be present
ENV IAM_ROLE=none
ENV MOUNT_POINT=/var/s3
VOLUME /var/s3
ARG S3FS_VERSION=v1.83
RUN apk --update --no-cache add fuse alpine-sdk automake autoconf libxml2-dev fuse-dev curl-dev libressl-dev tar bash; \
\
mkdir -p /tmp/build; \
cd /tmp/build; \
\
curl -o v${S3FS_VERSION}.tar.gz -L https://github.com/s3fs-fuse/s3fs-fuse/archive/v${S3FS_VERSION}.tar.gz; \
tar xvz -f /tmp/build/v${S3FS_VERSION}.tar.gz; \
cd s3fs-fuse-${S3FS_VERSION} && ./autogen.sh && ./configure --prefix=/usr && make && make install; \
\
cd /tmp; \
rm -rf /tmp/build
COPY docker-entrypoint.sh /
COPY mime.types /etc
ENTRYPOINT ["/docker-entrypoint.sh"]