19 lines
343 B
Docker
19 lines
343 B
Docker
|
FROM golang:alpine AS builder
|
||
|
LABEL maintainer="IRT PFN"
|
||
|
ENV DOCKER_ENVIRONMENT=true
|
||
|
WORKDIR /app
|
||
|
|
||
|
COPY . .
|
||
|
COPY conf/docker_scheduler.json /etc/oc/scheduler.json
|
||
|
|
||
|
RUN go build .
|
||
|
|
||
|
FROM golang:alpine
|
||
|
WORKDIR /app
|
||
|
|
||
|
COPY --from=builder /app/oc-scheduler .
|
||
|
COPY conf/docker_scheduler.json /etc/oc/scheduler.json
|
||
|
|
||
|
ENTRYPOINT ["/app/oc-scheduler"]
|
||
|
|