forked from gaul/s3proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (31 loc) · 983 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
33
34
35
36
37
38
39
# Multistage - Builder
FROM maven:3.5.0-jdk-7-alpine as s3proxy-builder
LABEL maintainer="Andrew Gaul <[email protected]>"
WORKDIR /opt/s3proxy
COPY . /opt/s3proxy/
RUN mvn package -DskipTests
# Multistage - Image
FROM openjdk:7-jre-alpine
LABEL maintainer="Andrew Gaul <[email protected]>"
WORKDIR /opt/s3proxy
COPY \
--from=s3proxy-builder \
/opt/s3proxy/target/s3proxy \
/opt/s3proxy/src/main/resources/run-docker-container.sh \
/opt/s3proxy/
ENV \
LOG_LEVEL="info" \
S3PROXY_AUTHORIZATION="aws-v2-or-v4" \
S3PROXY_IDENTITY="local-identity" \
S3PROXY_CREDENTIAL="local-credential" \
S3PROXY_CORS_ALLOW_ALL="false" \
S3PROXY_IGNORE_UNKNOWN_HEADERS="false" \
JCLOUDS_PROVIDER="filesystem" \
JCLOUDS_ENDPOINT="" \
JCLOUDS_REGION="" \
JCLOUDS_REGIONS="us-east-1" \
JCLOUDS_IDENTITY="remote-identity" \
JCLOUDS_CREDENTIAL="remote-credential"
EXPOSE 80
VOLUME /data
ENTRYPOINT ["/opt/s3proxy/run-docker-container.sh"]