Created
March 12, 2020 06:24
-
-
Save monirz/0489b79e55929c98bff4346cf1afa0ea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang:1.14-alpine | |
ENV GO111MODULE=on | |
ENV PORT=8090 | |
WORKDIR /app/server | |
COPY go.mod . | |
RUN go mod download | |
COPY . . | |
RUN GOARCH=wasm GOOS=js go build -o lib.wasm main.go | |
CMD ["go", "run", "server.go"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment