Compare commits
2 Commits
4a56cda040
...
579a2ac26b
Author | SHA1 | Date | |
---|---|---|---|
579a2ac26b | |||
a1e18fa2e9 |
@ -1,8 +1,12 @@
|
||||
FROM golang:1.21-alpine
|
||||
WORKDIR /app
|
||||
FROM golang:1.21-alpine as builder
|
||||
WORKDIR /build
|
||||
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,6 +2,7 @@ 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