2020-03-04 14:56:08 +00:00
|
|
|
# Copyright (c) 2020 Red Hat, Inc.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
|
|
# implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2023-10-12 15:24:29 +00:00
|
|
|
FROM docker.io/opendevorg/python-builder:3.11-bookworm as builder
|
2020-03-04 14:56:08 +00:00
|
|
|
|
|
|
|
COPY . /tmp/src
|
|
|
|
RUN assemble
|
|
|
|
|
2023-10-12 15:24:29 +00:00
|
|
|
FROM docker.io/opendevorg/python-base:3.11-bookworm
|
2020-03-04 14:56:08 +00:00
|
|
|
|
|
|
|
COPY --from=builder /output/ /output
|
|
|
|
RUN /output/install-from-bindep
|
|
|
|
|
2020-07-06 19:50:59 +00:00
|
|
|
# Trigger entrypoint loading to trigger stevedore entrypoint caching
|
|
|
|
RUN openstack --help >/dev/null 2>&1
|
|
|
|
|
2020-03-04 14:56:08 +00:00
|
|
|
CMD ["/usr/local/bin/openstack"]
|