blob: b65c9af28028ababb0259059fa3a4fa60f0235b7 [file] [log] [blame]
David K. Bainbridge10a7a7e2018-01-29 09:54:40 -08001# Copyright 2018 the original author or authors.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15ARG TAG=latest
16ARG REGISTRY=
17ARG REPOSITORY=
18
19FROM ${REGISTRY}${REPOSITORY}voltha-protos:${TAG} as protos
20FROM ${REGISTRY}${REPOSITORY}voltha-base:${TAG}
21MAINTAINER Voltha Community <info@opennetworking.org>
22
23# Bundle app source
24RUN mkdir /voltha && touch /voltha/__init__.py
25ENV PYTHONPATH=/voltha
26COPY common /voltha/common
27COPY voltha /voltha/voltha
28COPY pki /voltha/pki
29
30# Copy in the generated GRPC proto code
31COPY --from=protos /protos/voltha /voltha/voltha/protos
32COPY --from=protos /protos/google/api /voltha/voltha/protos/third_party/google/api
33COPY --from=protos /protos/asfvolt16_olt /voltha/voltha/adapters/asfvolt16_olt/protos
Jonathan Hart086476d2018-04-09 10:53:13 -070034COPY --from=protos /protos/openolt /voltha/voltha/adapters/openolt/protos
lcui8961f9f2018-07-13 18:17:17 -070035COPY --from=protos /protos/cig_olt /voltha/voltha/protos
David K. Bainbridge10a7a7e2018-01-29 09:54:40 -080036
37# Exposing process and default entry point
38# EXPOSE 8000
39CMD ["python", "voltha/voltha/main.py"]