修改使用读取配置文件的方式初始化数据库

This commit is contained in:
dushixiang
2020-12-25 21:43:38 +08:00
parent b079b7affe
commit 0d3e9c4cc7
6 changed files with 36 additions and 20 deletions

View File

@ -8,7 +8,7 @@ WORKDIR /app
COPY . .
RUN go env && CGO_ENABLED=0 go build -o nt main.go
RUN go env && CGO_ENABLED=0 go build -o next-terminal main.go
FROM guacamole/guacd:1.2.0
@ -25,10 +25,9 @@ ENV MYSQL_PASSWORD mysql
ENV MYSQL_DATABASE next_terminal
ENV SERVER_PORT 8088
WORKDIR /usr/local/nt
WORKDIR /usr/local/next-terminal
COPY --from=builder /app/nt ./
COPY --from=builder /app/config.yml ./
COPY --from=builder /app/next-terminal ./
COPY --from=builder /app/web/build ./web/build
COPY --from=builder /app/web/src/fonts/Menlo-Regular-1.ttf /usr/share/fonts/