Jonathan Hart | f86817b | 2018-08-17 10:35:54 -0700 | [diff] [blame^] | 1 | |
| 2 | # Copyright 2018-present Open Networking Foundation |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
| 16 | FROM golang:1.7-alpine as builder |
| 17 | MAINTAINER Open Networking Foundation <info@opennetworking.org> |
| 18 | |
| 19 | WORKDIR /go |
| 20 | ADD . /go/src/gerrit.opencord.org/sadis-server |
| 21 | RUN go build -o /build/entry-point gerrit.opencord.org/sadis-server |
| 22 | |
| 23 | FROM alpine:3.5 |
| 24 | MAINTAINER Open Networking Foundation <info@opennetworking.org> |
| 25 | |
| 26 | COPY --from=builder /build/entry-point /service/entry-point |
| 27 | |
| 28 | EXPOSE 8000 |
| 29 | |
| 30 | WORKDIR /service |
| 31 | ENTRYPOINT ["/service/entry-point"] |