-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from bsach64/watcher
Added Watcher that watches over the chunk directory
- Loading branch information
Showing
3 changed files
with
33 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
FROM golang:1.23-alpine AS builder | ||
# FROM golang:1.23-alpine AS builder | ||
|
||
WORKDIR /app | ||
|
||
COPY go.mod go.sum ./ | ||
RUN go mod download | ||
# COPY go.mod go.sum ./ | ||
# RUN go mod download | ||
|
||
COPY . . | ||
RUN go build -o /goback main.go | ||
# COPY . . | ||
# RUN go build -o /goback main.go | ||
|
||
FROM debian:stable-slim | ||
|
||
FROM alpine:3.18 | ||
WORKDIR /app | ||
|
||
COPY . . | ||
|
||
RUN apk add --no-cache openssh sqlite && \ | ||
RUN apt-get intsall openssh && \ | ||
mkdir -p /app/private /app/.data && \ | ||
[ ! -f /app/private/id_rsa ] && ssh-keygen -t rsa -b 4096 -f /app/private/id_rsa -N "" || true | ||
|
||
COPY --from=builder /goback /usr/local/bin/goback | ||
COPY goback /usr/local/bin/goback | ||
|
||
CMD ["goback"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters