X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=nonrtric%2Frapp%2Fransliceassurance.git;a=blobdiff_plain;f=smoversion%2Fstub%2FDockerfile;fp=smoversion%2Fstub%2FDockerfile;h=59003906df8f9a7d17b8b1a7a559fbf9cd604826;hp=0000000000000000000000000000000000000000;hb=5542d26d709c996977d3992c58b273ce83e21e16;hpb=71e113b81dbc68694aec281c85c4472640dc8095 diff --git a/smoversion/stub/Dockerfile b/smoversion/stub/Dockerfile new file mode 100644 index 0000000..5900390 --- /dev/null +++ b/smoversion/stub/Dockerfile @@ -0,0 +1,19 @@ +FROM golang:1.15.2-alpine3.12 as build +RUN apk add git +RUN mkdir /build +ADD . /build +WORKDIR /build +RUN go build -o simulator . + +FROM alpine:latest +RUN mkdir /app +WORKDIR /app/ + +# Copy the Pre-built binary file from the previous stage +COPY --from=build /build . + +# Expose port 8080 +EXPOSE 8080 + +# Run Executable +ENTRYPOINT ["/stub"] \ No newline at end of file