This repository has been archived by the owner on Mar 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
59 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,4 +34,5 @@ vendor | |
|
||
# Bindata | ||
# assets/assets.go | ||
# template/template.go | ||
# template/template.go | ||
/echo-web |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,30 @@ | ||
FROM golang:1.8.3 | ||
FROM alpine:3.2 | ||
|
||
WORKDIR /go/src/echo-web | ||
COPY . . | ||
# 配置文件 | ||
ADD conf /conf | ||
ADD echo-web /echo-web | ||
|
||
#RUN go-wrapper download # "go get -d -v ./..." | ||
#RUN go-wrapper install # "go install -v ./..." | ||
|
||
# Bindata工具安装 | ||
RUN go get -u github.com/jteeuwen/go-bindata/... | ||
WORKDIR / | ||
|
||
# conf.toml配置端口一致 | ||
EXPOSE 8080 | ||
|
||
# CMD ["go-wrapper", "run"] # ["app"] | ||
CMD ./run.sh -a -t | ||
ENTRYPOINT [ "/echo-web" ] | ||
|
||
# 源码方式 | ||
# FROM golang:1.8.3 | ||
# | ||
# WORKDIR /go/src/echo-web | ||
# COPY . . | ||
# | ||
# #RUN go-wrapper download # "go get -d -v ./..." | ||
# #RUN go-wrapper install # "go install -v ./..." | ||
# | ||
# # Bindata工具安装 | ||
# RUN go get -u github.com/jteeuwen/go-bindata/... | ||
# | ||
# # conf.toml配置端口一致 | ||
# EXPOSE 8080 | ||
# | ||
# # CMD ["go-wrapper", "run"] # ["app"] | ||
# CMD ./run.sh -a -t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters