|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +# or more contributor license agreements. See the NOTICE file |
| 3 | +# distributed with this work for additional information |
| 4 | +# regarding copyright ownership. The ASF licenses this file |
| 5 | +# to you under the Apache License, Version 2.0 (the |
| 6 | +# "License"); you may not use this file except in compliance |
| 7 | +# with the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, |
| 12 | +# software distributed under the License is distributed on an |
| 13 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | +# KIND, either express or implied. See the License for the |
| 15 | +# specific language governing permissions and limitations |
| 16 | +# under the License. |
| 17 | + |
| 18 | +FROM node:10-buster AS build |
| 19 | + |
| 20 | +WORKDIR /build |
| 21 | + |
| 22 | +RUN apt-get -y update && \ |
| 23 | + apt-get -y upgrade |
| 24 | + |
| 25 | +COPY . /build/ |
| 26 | +RUN npm install |
| 27 | +RUN npm run build |
| 28 | + |
| 29 | +FROM nginx:alpine AS runtime |
| 30 | + |
| 31 | +LABEL org.opencontainers.image.title="CloudStack Primate" \ |
| 32 | + org.opencontainers.image.description="A modern role-based progressive CloudStack UI" \ |
| 33 | + org.opencontainers.image.authors="Apache CloudStack Contributors" \ |
| 34 | + org.opencontainers.image.url="https://github.com/apache/cloudstack-primate" \ |
| 35 | + org.opencontainers.image.documentation="https://github.com/apache/cloudstack-primate/README.md" \ |
| 36 | + org.opencontainers.image.source="https://github.com/apache/cloudstack-primate" \ |
| 37 | + org.opencontainers.image.vendor="The Apache Software Foundation" \ |
| 38 | + org.opencontainers.image.licenses="Apache-2.0" \ |
| 39 | + org.opencontainers.image.ref.name="latest" |
| 40 | + |
| 41 | +COPY --from=build /build/dist/. /usr/share/nginx/html/ |
0 commit comments