ソースを参照

added docker configuration file

tags/v1.0.0
Remco 9年前
コミット
6c85472240
1個のファイルの変更18行の追加0行の削除
  1. +18
    -0
      transfersh-server/Dockerfile

+ 18
- 0
transfersh-server/Dockerfile ファイルの表示

@@ -0,0 +1,18 @@
FROM golang
MAINTAINER Remco Verhoef <remco@dutchcoders.io>

RUN mkdir -p /go/src/app
WORKDIR /go/src/app

# Copy the local package files to the container's workspace.
ADD . /go/src/app

# install dependencies
RUN go get ./

# build & install server
RUN go install .

ENTRYPOINT /go/bin/app --port 8080

EXPOSE 8080

読み込み中…
キャンセル
保存