[OOM-K8S-CERT-EXTERNAL-PROVIDER] Configuration for local development
[oom/platform/cert-service.git] / certServiceK8sExternalProvider / dev / Dockerfile.dev
1 # ============LICENSE_START=======================================================
2 # oom-certservice-k8s-external-provider
3 # ================================================================================
4 # Copyright (C) 2020 Nokia. All rights reserved.
5 # ================================================================================
6 # This source code was copied from the following git repository:
7 # https://github.com/smallstep/step-issuer
8 # The source code was modified for usage in the ONAP project.
9 # ================================================================================
10 # Licensed under the Apache License, Version 2.0 (the "License");
11 # you may not use this file except in compliance with the License.
12 # You may obtain a copy of the License at
13 #
14 #      http://www.apache.org/licenses/LICENSE-2.0
15 #
16 # Unless required by applicable law or agreed to in writing, software
17 # distributed under the License is distributed on an "AS IS" BASIS,
18 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 # See the License for the specific language governing permissions and
20 # limitations under the License.
21 # ============LICENSE_END=========================================================
22 #
23
24 # You can easily switch between PROD image (gcr.io) and DEV image (alpine)
25 #FROM gcr.io/distroless/static:latest
26 FROM alpine:latest
27 RUN apk add --no-cache bash sudo vim curl jq
28
29 RUN mkdir /certs
30
31 COPY dev/certs/cmpv2Issuer-cert.pem /certs/cmpv2Issuer-cert.pem
32 COPY dev/certs/cmpv2Issuer-key.pem  /certs/cmpv2Issuer-key.pem
33 COPY dev/certs/cacert.pem           /certs/cacert.pem
34
35 WORKDIR /
36 COPY bin/oom-certservice-cmpv2issuer /oom-certservice-cmpv2issuer
37
38 ENTRYPOINT ["/oom-certservice-cmpv2issuer"]