Unverified Commit e542703c authored by Eric_Lee's avatar Eric_Lee Committed by GitHub

modify dockerfile (#44)

parent bd3d0119
...@@ -5,6 +5,7 @@ ARG GOPROXY ...@@ -5,6 +5,7 @@ ARG GOPROXY
ENV GOPROXY=$GOPROXY ENV GOPROXY=$GOPROXY
ENV GO111MODULE=on ENV GO111MODULE=on
COPY . . COPY . .
RUN go mod download
RUN cd cmd && go build koko.go RUN cd cmd && go build koko.go
FROM alpine FROM alpine
......
...@@ -18,11 +18,11 @@ import ( ...@@ -18,11 +18,11 @@ import (
func NewUserVolume(user *model.User, addr, hostId string) *UserVolume { func NewUserVolume(user *model.User, addr, hostId string) *UserVolume {
var assets []model.Asset var assets []model.Asset
var homename string homename := "Home"
switch hostId { switch hostId {
case "": case "":
assets = service.GetUserAssets(user.ID, "1", "") assets = service.GetUserAssets(user.ID, "1", "")
homename = "Home"
default: default:
assets = service.GetUserAssets(user.ID, "1", hostId) assets = service.GetUserAssets(user.ID, "1", hostId)
if len(assets) == 1 { if len(assets) == 1 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment