Initial commit
This commit is contained in:
24
Dockerfile
Normal file
24
Dockerfile
Normal file
@@ -0,0 +1,24 @@
|
||||
FROM golang:alpine AS builder
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
RUN apk add --update --no-cache git make
|
||||
|
||||
RUN git clone https://git.blackfinn.de/go/activitycollect.git && \
|
||||
cd activitycollect && \
|
||||
make all
|
||||
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
RUN mkdir -p /usr/bin
|
||||
COPY --from=builder /build/activitycollect/bin/activitycollect /usr/bin
|
||||
|
||||
RUN mkdir -p /activitycollect/infolder
|
||||
RUN mkdir -p /activitycollect/outfolder
|
||||
|
||||
COPY config.json /activitycollect/
|
||||
COPY run.sh /usr/bin/
|
||||
|
||||
ENTRYPOINT ["/usr/bin/run.sh"]
|
||||
|
Reference in New Issue
Block a user