bathyscaphe/build/Dockerfile-scheduler
Aloïs Micard c6a857f45b
Add basic scheduler implementation
- Create separate proto package to store Trandoshan related protocol implementation
2020-04-05 19:24:19 +02:00

19 lines
355 B
Plaintext

# build image
FROM golang:1.14.0-alpine as builder
RUN apk update && apk upgrade && \
apk add --no-cache bash git openssh
WORKDIR /app
COPY . .
# Test then build app
RUN go build -v github.com/creekorful/trandoshan/cmd/scheduler
# runtime image
FROM alpine:latest
COPY --from=builder /app/scheduler /app/
WORKDIR /app/
ENTRYPOINT ["./scheduler"]