mirror of https://github.com/dtm-labs/dtm.git
2 changed files with 13 additions and 3 deletions
@ -1,8 +1,6 @@ |
|||
FROM daocloud.io/atsctoo/golang:1.15 |
|||
WORKDIR /app/dtm |
|||
COPY . . |
|||
RUN go env -w GO111MODULE=on |
|||
RUN go env -w GOPROXY=https://mirrors.aliyun.com/goproxy/,direct |
|||
RUN go build app/main.go |
|||
EXPOSE 8080 |
|||
CMD [ "/app/dtm/main", "dtmsvr" ] |
|||
CMD [ "/bin/bash", "-c", "go build app/main.go && /app/dtm/main dtmsvr" ] |
|||
|
|||
@ -0,0 +1,12 @@ |
|||
version: '3.9' |
|||
services: |
|||
web: |
|||
build: . |
|||
ports: |
|||
- '80:4005' |
|||
volumes: |
|||
- .:/app/dtm |
|||
mysql: |
|||
image: 'daocloud.io/mysql:5.7' |
|||
ports: |
|||
- '3306:3306' |
|||
Loading…
Reference in new issue