Docker Changes
This commit is contained in:
parent
1e03bba52b
commit
e64c0c78a6
1 changed files with 4 additions and 5 deletions
|
@ -1,7 +1,6 @@
|
|||
FROM golang:latest
|
||||
RUN mkdir /app
|
||||
ADD . /app/
|
||||
RUN mkdir -p /app
|
||||
WORKDIR /app
|
||||
RUN go get -u
|
||||
RUN go build -o main .
|
||||
CMD ["/app/main"]
|
||||
ADD . /app
|
||||
RUN go build ./main.go
|
||||
CMD ["./main"]
|
Loading…
Reference in a new issue