blob: a8abc6372987a20de243ab77bbb9b77366c7b5e0 [file] [log] [blame]
Jonathan Hartf86817b2018-08-17 10:35:54 -07001
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
Matteo Scandolo9a2772a2018-11-19 14:56:26 -080016# docker build -t opencord/sadis-server:candidate .
Matteo Scandoloa79e6082018-08-21 14:16:47 -070017
Matteo Scandolo9a2772a2018-11-19 14:56:26 -080018FROM golang:1.10-stretch as builder
Jonathan Hartf86817b2018-08-17 10:35:54 -070019MAINTAINER Open Networking Foundation <info@opennetworking.org>
20
21WORKDIR /go
22ADD . /go/src/gerrit.opencord.org/sadis-server
Matteo Scandolo9a2772a2018-11-19 14:56:26 -080023RUN CGO_ENABLED=0 GOOS=linux go build -o /build/entry-point gerrit.opencord.org/sadis-server
Jonathan Hartf86817b2018-08-17 10:35:54 -070024
25FROM alpine:3.5
26MAINTAINER Open Networking Foundation <info@opennetworking.org>
27
28COPY --from=builder /build/entry-point /service/entry-point
29
30EXPOSE 8000
31
32WORKDIR /service
33ENTRYPOINT ["/service/entry-point"]