Skip to content

Commit a69a272

Browse files
author
root
committed
update dockerfile
1 parent 98fb880 commit a69a272

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

Dockerfile

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
FROM auxpi:base AS builder
1+
FROM golang:1.13-stretch AS builder
2+
3+
ENV TZ Asia/Shanghai
4+
5+
ENV GO111MODULE on
6+
7+
ENV GOPROXY https://goproxy.cn
8+
9+
WORKDIR $GOPATH/src/github.com/auxpi
10+
11+
COPY . $GOPATH/src/github.com/auxpi
212

313
RUN make build
414

@@ -33,4 +43,4 @@ EXPOSE 2333
3343

3444
ENTRYPOINT ["/entrypoint.sh"]
3545

36-
CMD ["run"]
46+
CMD ["run"]

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ build: ## 构建
6969

7070
.PHONY: docker
7171
docker: ## 构建镜像
72-
@docker build -t auxpi:base -f hack/docker/Dockerfile .
72+
# @docker build -t auxpi:base -f hack/docker/Dockerfile .
7373
@docker build -t ysicing/auxpi .
7474

7575
help: ## this help

0 commit comments

Comments
 (0)