add docker support
This commit is contained in:
parent
ea41163296
commit
c4c38f0dc9
1 changed files with 13 additions and 0 deletions
13
Dockerfile
Normal file
13
Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
|||
FROM golang:1.16
|
||||
|
||||
RUN mkdir -p /weather-api
|
||||
|
||||
WORKDIR /weather-api
|
||||
|
||||
ADD . /weather-api
|
||||
|
||||
RUN go build ./main.go
|
||||
|
||||
EXPOSE 10000
|
||||
|
||||
CMD ["./main"]
|
Loading…
Add table
Reference in a new issue