Docker image (#22)
- Config file now is inside a config folder by default, to make easier docker integration. - File not found errors now are debug log outputs. - Added dependabot integration for github action versions. Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
This commit is contained in:
parent
8882d80232
commit
0a4438b1ad
7 changed files with 126 additions and 5 deletions
33
Dockerfile
Normal file
33
Dockerfile
Normal file
|
@ -0,0 +1,33 @@
|
|||
#===============
|
||||
# Stage 1: Build
|
||||
#===============
|
||||
|
||||
FROM golang:1.15-alpine as builder
|
||||
|
||||
ENV BIN_REPO=github.com/distribyted/distribyted
|
||||
ENV BIN_PATH=$GOPATH/src/$BIN_REPO
|
||||
|
||||
COPY . $BIN_PATH
|
||||
WORKDIR $BIN_PATH
|
||||
|
||||
RUN apk add fuse-dev git gcc libc-dev g++ make
|
||||
|
||||
RUN BIN_OUTPUT=/bin/distribyted make build
|
||||
|
||||
#===============
|
||||
# Stage 2: Run
|
||||
#===============
|
||||
|
||||
FROM alpine:3
|
||||
|
||||
RUN apk add gcc libc-dev fuse-dev
|
||||
|
||||
COPY --from=builder /bin/distribyted /bin/distribyted
|
||||
RUN chmod +x /bin/distribyted
|
||||
|
||||
RUN mkdir /distribyted-data
|
||||
|
||||
RUN echo "user_allow_other" >> /etc/fuse.conf
|
||||
ENV DISTRIBYTED_FUSE_ALLOW_OTHER=true
|
||||
|
||||
ENTRYPOINT ["./bin/distribyted"]
|
Loading…
Add table
Add a link
Reference in a new issue