Move authelia entrypoint to cmd/authelia directory.
parent
5bd9e831eb
commit
391bd6c576
|
@ -41,7 +41,4 @@ users_database.test.yml
|
||||||
.kube
|
.kube
|
||||||
.idea
|
.idea
|
||||||
|
|
||||||
# Go binary
|
|
||||||
authelia
|
|
||||||
|
|
||||||
.authelia-interrupt
|
.authelia-interrupt
|
||||||
|
|
|
@ -10,7 +10,7 @@ WORKDIR /go/src/app
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# CGO_ENABLED=1 is mandatory for building go-sqlite3
|
# CGO_ENABLED=1 is mandatory for building go-sqlite3
|
||||||
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=1 go build -o authelia
|
RUN cd cmd/authelia && GOOS=linux GOARCH=amd64 CGO_ENABLED=1 go build -o authelia
|
||||||
|
|
||||||
|
|
||||||
# ========================================
|
# ========================================
|
||||||
|
@ -33,7 +33,7 @@ RUN apk --no-cache add ca-certificates tzdata
|
||||||
|
|
||||||
WORKDIR /usr/app
|
WORKDIR /usr/app
|
||||||
|
|
||||||
COPY --from=builder-backend /go/src/app/authelia authelia
|
COPY --from=builder-backend /go/src/app/cmd/authelia/authelia authelia
|
||||||
COPY --from=builder-frontend /node/src/app/build public_html
|
COPY --from=builder-frontend /node/src/app/build public_html
|
||||||
|
|
||||||
EXPOSE 9091
|
EXPOSE 9091
|
||||||
|
|
|
@ -8,7 +8,8 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func buildAutheliaBinary() {
|
func buildAutheliaBinary() {
|
||||||
cmd := CommandWithStdout("go", "build", "-o", OutputDir+"/authelia")
|
cmd := CommandWithStdout("go", "build", "-o", "../../"+OutputDir+"/authelia")
|
||||||
|
cmd.Dir = "cmd/authelia"
|
||||||
cmd.Env = append(os.Environ(),
|
cmd.Env = append(os.Environ(),
|
||||||
"GOOS=linux", "GOARCH=amd64", "CGO_ENABLED=1")
|
"GOOS=linux", "GOARCH=amd64", "CGO_ENABLED=1")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue