Browse Source

Change: Dockerfile && Listen port on Installer

master
Siroco 10 months ago
parent
commit
bb7c2948c0
Signed by: siroco
GPG Key ID: 1324098302A514B0
  1. 3
      Dockerfile
  2. 5
      installer/main.go

3
Dockerfile

@ -38,8 +38,7 @@ COPY installer .
WORKDIR /installer
RUN go get . && \
go build -o gancio-installer
RUN go build -o gancio-installer
# --- #
FROM registry.sindominio.net/debian

5
installer/main.go

@ -48,6 +48,7 @@ var CONFIG_PATH = "/data/config.json"
var DB_PATH = "/data/db.sqlite"
var UPLOADS_PATH = "/data/uploads"
var LOGS_PATH = "/data/logs"
var LISTEN_PORT = ":13120"
func main() {
fmt.Println("Gancio Installer")
@ -141,6 +142,6 @@ func main() {
})
fmt.Println("Runing server http://localhost:8080")
http.ListenAndServe(":8080", nil)
fmt.Println("Runing server "+LISTEN_PORT)
http.ListenAndServe(LISTEN_PORT, nil)
}

Loading…
Cancel
Save