This commit is contained in:
bruno 2023-07-29 23:29:19 -04:00
parent 768d75e400
commit e16805640d

View File

@ -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"]