mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 19:13:34 +00:00
init Dockerfile to run machine in container
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
# Ignore everything and use an allowlist of what is allowed to not package any secrets by accident.
|
||||
*
|
||||
|
||||
# Allow files and directories.
|
||||
!cmd/
|
||||
!internal/
|
||||
!go.*
|
||||
|
||||
# Ignore unnecessary files inside allowed directories.
|
||||
**/.DS_Store
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
FROM golang:1.23.2-alpine AS uncloudd
|
||||
|
||||
ARG TARGETOS
|
||||
ARG TARGETARCH
|
||||
|
||||
COPY . .
|
||||
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o uncloudd cmd/uncloudd/main.go
|
||||
|
||||
|
||||
FROM docker:27.3.1-dind
|
||||
RUN apk --no-cache add \
|
||||
wireguard-tools
|
||||
COPY --from=uncloudd /go/uncloudd /usr/local/bin/uncloudd
|
||||
CMD ["uncloudd"]
|
||||
Reference in New Issue
Block a user