-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (30 loc) · 822 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
######################
# Working #
######################
FROM golang:alpine
EXPOSE 3000
RUN apk update && apk add --no-cache git
WORKDIR /go/src/github.com/sielerjunjor/framework-api
RUN go get github.com/gorilla/mux go.mongodb.org/mongo-driver ; exit 0
COPY . .
RUN go install
CMD ["framework-api"]
# docker run --rm --net="host" --name golangba golangba
##########
# Step1 #
##########
#FROM golang:latest AS builder
#WORKDIR /go/src/github.com/sielerjunjor/framework-api
#RUN go get github.com/gorilla/mux go.mongodb.org/mongo-driver ; exit 0
#COPY . .
#RUN go install
#RUN go build -o /go/bin/hello
##########
# Step2 #
##########
#FROM scratch AS Production
#EXPOSE 3000
# Copy our static executable.
#COPY --from=builder /go/bin/hello /go/bin/hello
# Run the hello binary.
#CMD ["./go/bin/hello"]