Introducing get-remote-files to download remote files
This commit is contained in:
parent
c3353572e6
commit
c9e3a9ac3c
6 changed files with 219 additions and 4 deletions
27
Dockerfile-get-remote-files
Normal file
27
Dockerfile-get-remote-files
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
FROM golang:1-alpine as gobuild
|
||||
|
||||
RUN apk add --no-cache git
|
||||
|
||||
WORKDIR /go/src/srs.epita.fr/fic-server/
|
||||
|
||||
RUN apk add --no-cache build-base
|
||||
|
||||
COPY go.mod go.sum ./
|
||||
COPY settings settings/
|
||||
COPY libfic ./libfic/
|
||||
COPY admin ./admin/
|
||||
|
||||
RUN go get -d -v ./admin && \
|
||||
go build -v -o get-remote-files ./admin/get-remote-files
|
||||
|
||||
|
||||
FROM alpine:3.18
|
||||
|
||||
RUN apk add --no-cache \
|
||||
ca-certificates
|
||||
|
||||
WORKDIR /srv
|
||||
|
||||
ENTRYPOINT ["/srv/get-remote-files", "/mnt/fic/"]
|
||||
|
||||
COPY --from=gobuild /go/src/srs.epita.fr/fic-server/get-remote-files /srv/get-remote-files
|
||||
Reference in a new issue