add worker dockerfile
This commit is contained in:
parent
5673acfddd
commit
04abe045e9
3 changed files with 9 additions and 4 deletions
9
Dockerfile.worker
Normal file
9
Dockerfile.worker
Normal file
|
@ -0,0 +1,9 @@
|
|||
FROM docker.io/golang:1.24.2 AS builder
|
||||
WORKDIR /src
|
||||
COPY . ./
|
||||
RUN go build -o /bin/2b2t-worker ./worker
|
||||
|
||||
FROM docker.io/debian:latest AS runner
|
||||
WORKDIR /run
|
||||
COPY --from=builder /bin/2b2t-worker /bin/2b2t-worker
|
||||
CMD ["/bin/2b2t-worker"]
|
|
@ -1,3 +0,0 @@
|
|||
# TODO: Dockerfile
|
||||
FROM docker.io/golang:1.24.2-alpine AS builder
|
||||
WORKDIR /app
|
|
@ -7,7 +7,6 @@ import (
|
|||
"sync"
|
||||
|
||||
"git.1e99.eu/1e99/2b2t/models"
|
||||
_ "github.com/mattn/go-sqlite3"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
Loading…
Add table
Reference in a new issue