소스 검색

update dockerfile (#157)

* dockerfile: use multistage build, add dockerfile to ignore

* gdrive: supports only oauth 2.0 client id json file for now
tags/v1.0.0
ahxxm 5 년 전
committed by Andrea Spacca
부모
커밋
3ca36f8c9c
3개의 변경된 파일8개의 추가작업 그리고 4개의 파일을 삭제
  1. +1
    -0
      .dockerignore
  2. +5
    -2
      Dockerfile
  3. +2
    -2
      README.md

+ 1
- 0
.dockerignore 파일 보기

@@ -14,3 +14,4 @@ extras
build
transfersh-server/run.sh
.elasticbeanstalk
Dockerfile

+ 5
- 2
Dockerfile 파일 보기

@@ -1,4 +1,4 @@
FROM golang:1.7-alpine
FROM golang:1.11-alpine as build
LABEL maintainer="Remco Verhoef <remco@dutchcoders.io>"

# Copy the local package files to the container's workspace.
@@ -7,6 +7,9 @@ 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"]
FROM golang:1.11-alpine
COPY --from=build /go/bin/transfersh /go/bin/transfersh

ENTRYPOINT ["/go/bin/transfersh", "--listener", ":8080"]

EXPOSE 8080 8080

+ 2
- 2
README.md 파일 보기

@@ -127,8 +127,8 @@ aws-access-key | aws access key | | AWS_ACCESS_KEY
aws-secret-key | aws access key | | AWS_SECRET_KEY
bucket | aws bucket | | BUCKET
basedir | path storage for local/gdrive provider| |
gdrive-client-json-filepath | path to client json config for gdrive provider| |
gdrive-local-config-path | path to local transfer.sh config cache for gdrive provider| |
gdrive-client-json-filepath | path to oauth client json config for gdrive provider| |
gdrive-local-config-path | path to store local transfer.sh config cache for gdrive provider| |
lets-encrypt-hosts | hosts to use for lets encrypt certificates (comma seperated) | |
log | path to log file| |



불러오는 중...
취소
저장