dockerized
This commit is contained in:
parent
6bff5cbcb6
commit
00c382de7f
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@ -0,0 +1,15 @@
|
||||
FROM golang:1.22-alpine as build
|
||||
|
||||
ENV TIER=starter
|
||||
|
||||
WORKDIR /build
|
||||
COPY . .
|
||||
RUN go mod download
|
||||
RUN go build -o=./fed-dashboard ./cmd/web
|
||||
|
||||
FROM gcr.io/distroless/static-debian11
|
||||
|
||||
COPY --from=build /build/fed-dashboard .
|
||||
COPY --from=build /build/ui/ /ui/
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["/fed-dashboard"]
|
@ -8,11 +8,6 @@ import (
|
||||
"flag"
|
||||
)
|
||||
|
||||
//TODO Get images for each app
|
||||
//TODO Stylesheet
|
||||
//TODO VPN Page
|
||||
//TODO Auth through LDAP for VPN page
|
||||
|
||||
type application struct {
|
||||
logger *slog.Logger
|
||||
templateCache map[string]*template.Template
|
||||
@ -21,7 +16,7 @@ type application struct {
|
||||
|
||||
func main() {
|
||||
//Get env variables
|
||||
addr := flag.String("addr", ":4000", "HTTP network address")
|
||||
addr := flag.String("addr", ":8080", "HTTP network address")
|
||||
tier := flag.String("tier", "starter", "tier the core is on")
|
||||
flag.Parse()
|
||||
//Set up logger
|
||||
|
BIN
fed-dashboard
Executable file
BIN
fed-dashboard
Executable file
Binary file not shown.
Loading…
Reference in New Issue
Block a user