Compare commits
No commits in common. "579a2ac26b59ffedf7a20aedb12bd2584fa3e7e8" and "4a56cda040569eea849fa0faec3e57f46c1286e1" have entirely different histories.
579a2ac26b
...
4a56cda040
@ -1,12 +1,8 @@
|
||||
FROM golang:1.21-alpine as builder
|
||||
WORKDIR /build
|
||||
FROM golang:1.21-alpine
|
||||
WORKDIR /app
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY *.go ./
|
||||
RUN go build -o hardfiles main.go
|
||||
|
||||
FROM golang:1.21-alpine as app
|
||||
WORKDIR /app
|
||||
COPY --from=builder /build/hardfiles .
|
||||
RUN mkdir files
|
||||
CMD ["./hardfiles"]
|
@ -2,7 +2,6 @@ services:
|
||||
hardfiles:
|
||||
container_name: hardfiles
|
||||
image: git.supernets.org/supernets/hardfiles:latest
|
||||
build: .
|
||||
volumes:
|
||||
- "$PWD/files:/app/files"
|
||||
- "$PWD/www:/app/www"
|
||||
|
Loading…
Reference in New Issue
Block a user