Code Review
/
nonrtric
/
rapp
/
ransliceassurance.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Introducing Prometheus
[nonrtric/rapp/ransliceassurance.git]
/
smoversion
/
stub
/
Dockerfile
1
FROM golang:1.15.2-alpine3.12 as build
2
RUN apk add git
3
RUN mkdir /build
4
ADD . /build
5
WORKDIR /build
6
RUN go build -o simulator .
7
8
FROM alpine:latest
9
RUN mkdir /app
10
WORKDIR /app/
11
12
# Copy the Pre-built binary file from the previous stage
13
COPY --from=build /build .
14
15
# Expose port 8080
16
EXPOSE 8080
17
18
# Run Executable
19
ENTRYPOINT ["/stub"]