Seed code for O-DU slice assurance new repo
[nonrtric/rapp/ransliceassurance.git] / smoversion / stub / Dockerfile
diff --git a/smoversion/stub/Dockerfile b/smoversion/stub/Dockerfile
new file mode 100644 (file)
index 0000000..5900390
--- /dev/null
@@ -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