FROM golang:nanoserver AS build COPY . /code WORKDIR /code RUN go build http.go FROM microsoft/nanoserver COPY --from=build /code/http.exe /http.exe EXPOSE 8080 CMD ["\\http.exe"]