Skip to content

Commit

Permalink
release v1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pottava committed Dec 30, 2018
1 parent 0533dab commit c49912b
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 29 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
[![pottava/s3-proxy](http://dockeri.co/image/pottava/s3-proxy)](https://hub.docker.com/r/pottava/s3-proxy/)

Supported tags and respective `Dockerfile` links:
・latest ([prod/Dockerfile](https://github.com/pottava/aws-s3-proxy/blob/master/prod/Dockerfile))
・1.1 ([prod/Dockerfile](https://github.com/pottava/aws-s3-proxy/blob/master/prod/Dockerfile))
・1 ([prod/Dockerfile](https://github.com/pottava/aws-s3-proxy/blob/master/prod/Dockerfile))
・latest ([prod/linux/1.4/Dockerfile](https://github.com/pottava/aws-s3-proxy/blob/master/prod/linux/1.4/Dockerfile))
・1.4 ([prod/linux/1.4/Dockerfile](https://github.com/pottava/aws-s3-proxy/blob/master/prod/linux/1.4/Dockerfile))
・1.4-win ([prod/windows/1.4/Dockerfile](https://github.com/pottava/aws-s3-proxy/blob/master/prod/windows/1.4/Dockerfile))
・1 ([prod/linux/1.4/Dockerfile](https://github.com/pottava/aws-s3-proxy/blob/master/prod/linux/1.4/Dockerfile))

## Description

Expand Down
25 changes: 25 additions & 0 deletions docker/linux/1.4/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# AWS S3 Proxy v1.4
# docker run -d -p 8080:80 -e AWS_REGION -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY -e AWS_S3_BUCKET pottava/s3-proxy

FROM golang:1.11.4-alpine3.8 AS build-env
RUN apk --no-cache add gcc musl-dev git
RUN go get -u github.com/golang/dep/...
WORKDIR /go/src/github.com/golang/dep
RUN git checkout v0.5.0 > /dev/null 2>&1
RUN go install github.com/golang/dep/...
RUN go get -u github.com/pottava/aws-s3-proxy
WORKDIR /go/src/github.com/pottava/aws-s3-proxy
RUN git checkout v1.4.1 > /dev/null 2>&1
RUN dep ensure
RUN go build -a -installsuffix cgo -ldflags "-s -w"

FROM alpine:3.8

ENV AWS_REGION=us-east-1 \
APP_PORT=80 \
ACCESS_LOG=false \
CONTENT_ENCODING=true

RUN apk add --no-cache ca-certificates
COPY --from=build-env /go/src/github.com/pottava/aws-s3-proxy/aws-s3-proxy /aws-s3-proxy
ENTRYPOINT ["/aws-s3-proxy"]
9 changes: 9 additions & 0 deletions docker/windows/1.4/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM mcr.microsoft.com/windows/nanoserver:10.0.14393.2485

ENV AWS_REGION=us-east-1 \
APP_PORT=80 \
ACCESS_LOG=false \
CONTENT_ENCODING=true

ADD https://github.com/pottava/aws-s3-proxy/releases/download/v1.4.1/windows_amd64.exe proxy.exe
ENTRYPOINT ["C:\\proxy.exe"]
26 changes: 0 additions & 26 deletions prod/Dockerfile

This file was deleted.

0 comments on commit c49912b

Please sign in to comment.