feat: add Dockerfile.
This commit is contained in:
parent
7bdcd9a79f
commit
fd0661dd8d
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@ -0,0 +1,17 @@
|
||||
FROM golang:1.14
|
||||
|
||||
MAINTAINER lanyulei "fdevops@163.com"
|
||||
|
||||
WORKDIR /opt/ferry
|
||||
|
||||
COPY . .
|
||||
|
||||
ENV GOPROXY="https://goproxy.cn"
|
||||
|
||||
RUN go mod download
|
||||
RUN go build -o ferry .
|
||||
RUN ./ferry init -c=/opt/ferry/config/settings.yml
|
||||
|
||||
EXPOSE 8002
|
||||
|
||||
CMD ["./ferry server -c=/opt/ferry/config/settings.yml"]
|
Loading…
x
Reference in New Issue
Block a user