Add basic Dockerfile
This commit is contained in:
parent
ca828e72d3
commit
065e674d39
2 changed files with 32 additions and 9 deletions
27
Dockerfile
Normal file
27
Dockerfile
Normal file
|
@ -0,0 +1,27 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
|
||||
FROM golang:1.22 AS build-stage
|
||||
WORKDIR /app
|
||||
|
||||
# Setup and compile Go
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY *.go ./
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -o /hibiscus
|
||||
|
||||
FROM alpine:3.19.1 AS deploy-stage
|
||||
WORKDIR /
|
||||
|
||||
# Bring over the executable
|
||||
COPY --from=build-stage /hibiscus /hibiscus
|
||||
|
||||
# Copy files
|
||||
COPY public public/
|
||||
COPY pages pages/
|
||||
VOLUME data
|
||||
VOLUME config
|
||||
|
||||
#USER nonroot:nonroot
|
||||
|
||||
EXPOSE 7101
|
||||
ENTRYPOINT ["/hibiscus"]
|
14
TODO.md
14
TODO.md
|
@ -1,16 +1,12 @@
|
|||
# TODO
|
||||
List of things to add to this project
|
||||
|
||||
|
||||
# Crucial
|
||||
* Load username&password, port from config.txt
|
||||
## Crucial
|
||||
* Add export feature
|
||||
* Add missing frontend pages
|
||||
|
||||
# Short term
|
||||
* Custom CSS, pico is too big for this project
|
||||
* Organise .go files better
|
||||
|
||||
# Long-medium term
|
||||
## Long-medium term
|
||||
* *Go* dependency-less
|
||||
* Improve logging, log to files
|
||||
* Improve (add?) logging, log to files
|
||||
* Make the CLI better
|
||||
* Timezones?
|
Loading…
Reference in a new issue