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
|
FROM golang:latest
|
||||||
RUN mkdir /app
|
RUN mkdir -p /app
|
||||||
ADD . /app/
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN go get -u
|
ADD . /app
|
||||||
RUN go build -o main .
|
RUN go build ./main.go
|
||||||
CMD ["/app/main"]
|
CMD ["./main"]
|
Loading…
Reference in a new issue