commit
This commit is contained in:
parent
768d75e400
commit
e16805640d
11
Dockerfile
11
Dockerfile
@ -1,6 +1,7 @@
|
||||
FROM golang:1.13
|
||||
RUN go get -u github.com/johndoe/mywebserver/template/...
|
||||
WORKDIR /app
|
||||
FROM golang:1.20
|
||||
RUN go get -u git.bcmaison.cf/SectionTests/go-web-docker/template/...
|
||||
WORKDIR /go/src/git.bcmaison.cf/SectionTests/go-web-docker
|
||||
COPY . .
|
||||
RUN go install .
|
||||
CMD ["/app/myweb"]
|
||||
RUN go version
|
||||
RUN go install -o /app/bin/app .
|
||||
CMD ["/go/bin/app"]
|
||||
|
Loading…
Reference in New Issue
Block a user