forked from cloudposse-archives/goofys
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (23 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
27
28
29
30
31
32
FROM alpine:3.7
MAINTAINER Cloud Posse, LLC
RUN apk update && apk add gcc ca-certificates openssl musl-dev git fuse syslog-ng coreutils curl
ENV GOOFYS_VERSION 0.23.1
RUN curl --fail -sSL -o /usr/local/bin/goofys https://github.com/kahing/goofys/releases/download/v${GOOFYS_VERSION}/goofys \
&& chmod +x /usr/local/bin/goofys
RUN curl -sSL -o /usr/local/bin/catfs https://github.com/kahing/catfs/releases/download/v0.8.0/catfs && chmod +x /usr/local/bin/catfs
ARG ENDPOINT
ENV MOUNT_DIR /mnt/s3
ENV REGION us-east-1
ENV BUCKET teleport-bucket
ENV STAT_CACHE_TTL 1m0s
ENV TYPE_CACHE_TTL 1m0s
ENV DIR_MODE 0700
ENV FILE_MODE 0600
ENV UID 0
ENV GID 0
RUN mkdir /mnt/s3
VOLUME /mnt/s3
ADD rootfs/ /
RUN chmod +x /usr/bin/run.sh
ENTRYPOINT ["sh"]
CMD ["/usr/bin/run.sh"]