mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2024-12-24 11:20:18 +01:00
f6c91c85fe
This drastically decreases the overall image size. Quick comparison: ``` # Image fetched from Docker Hub dutchcoders/transfer.sh latest a875ed5dfa56 5 months ago 704MB # Image just built dutchcoders/transfer.sh latest a220c49297eb 4 minutes ago 269MB ```
12 lines
376 B
Docker
12 lines
376 B
Docker
FROM golang:1.7-alpine
|
|
MAINTAINER Remco Verhoef <remco@dutchcoders.io>
|
|
|
|
# Copy the local package files to the container's workspace.
|
|
ADD . /go/src/github.com/dutchcoders/transfer.sh
|
|
|
|
# build & install server
|
|
RUN go build -o /go/bin/transfersh github.com/dutchcoders/transfer.sh
|
|
|
|
ENTRYPOINT ["/go/bin/transfersh", "--listener", ":8080", "--provider", "s3"]
|
|
|
|
EXPOSE 8080 8080
|