mirror of
https://github.com/creekorful/bathyscaphe
synced 2024-11-19 15:25:44 +00:00
c6a857f45b
- Create separate proto package to store Trandoshan related protocol implementation
19 lines
355 B
Plaintext
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"] |