--- /dev/null
+FROM docker.io/golang:1.23.5-alpine as build
+
+WORKDIR src/yampl
+COPY go.* .
+COPY *.go .
+RUN go mod tidy
+
+RUN go install -ldflags="-s"
+RUN pwd
+
+# run image
+FROM scratch as run
+
+EXPOSE 8080
+VOLUME ["/app/static", "/app/templates", "/app/toml"]
+
+WORKDIR /app
+COPY --from=build /go/bin/yampl /app/yampl
+ENTRYPOINT ["/app/yampl", "-static", "/app/static", "-templ", "/app/templates", "-toml"]
+CMD ["project.toml"]
--- /dev/null
+version: '3'
+services:
+ yampl:
+ image: yampl
+ container_name: yampl
+ image: containers.openfl.eu/local/yampl:dev
+ build:
+ dockerfile: Containerfile
+ ports:
+ - "8080:8080"
+ volumes:
+ - static:/app/static
+ - templates:/app/templates
+ - toml:/app/toml
+ command:
+ /app/toml/yampl.toml
+
+volumes:
+ static:
+ templates:
+ toml:
set up a git page for yampl.
'''
type = "task"
-completed = false
+completed = true
[[items]]
name = "static links to details"
type = "bug"
completed = false
+[[items]]
+name = "container"
+description = '''
+write a container build file and push it to containers.openfl.eu/local/yampl
+'''
+type = "task"
+completed = true
+
[[items]]
name = "hosted"
description = '''
-Host yampl for yampl on project.openfl.eu/yamlp
+Host yampl for yampl on project.openfl.eu/yamlp.
'''
type = "milestone"
completed = false
}
fmt.Println("listening on localhost:8081")
- panic(http.ListenAndServe(":8081", nil))
+ panic(http.ListenAndServe(":8080", nil))
}
+++ /dev/null
-
-<!DOCTYPE html>
-<html>
- <head>
- </head>
- <body>
-
-
-<div>
-
-
-
-
- <span style="color: gray"> command line utility </span>
-</div>
-
-
-
-<div>
-
-
- <span style="color: black"> http server </span>
-</div>
-
-
-
-<div>
-
-
- <span style="color: black"> watch project file </span>
-</div>
-
-
-
-<div>
-
-
- <span style="color: black"> heat death of the universe </span>
-</div>
-
-
- </body>
-</html>