diff --git a/Dockerfile b/Dockerfile index c84bad8..2f94d9f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,8 @@ LABEL "email"="ysg@myschools.me" ENV APP_DIR=/app \ addr=0.0.0.0 \ port=5678 \ - data="/data/gofound" + data="/data/gofound" \ + dictionary="/data/gofound" COPY --from=builder /app/gofound ${APP_DIR}/gofound @@ -26,4 +27,4 @@ EXPOSE 5678 RUN chmod +x gofound -CMD ["/app/gofound"] +CMD ["./gofound"] diff --git a/go.mod b/go.mod index 5ced638..cdeda81 100644 --- a/go.mod +++ b/go.mod @@ -13,7 +13,6 @@ require ( github.com/syndtr/goleveldb v1.0.0 github.com/unrolled/secure v1.13.0 github.com/wangbin/jiebago v0.3.2 - gopkg.in/yaml.v2 v2.4.0 ) require ( @@ -43,4 +42,5 @@ require ( golang.org/x/text v0.3.7 // indirect golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f // indirect google.golang.org/protobuf v1.28.0 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect )