Skip to content

Instantly share code, notes, and snippets.

@monirz
Created March 12, 2020 06:24
Show Gist options
  • Save monirz/0489b79e55929c98bff4346cf1afa0ea to your computer and use it in GitHub Desktop.
Save monirz/0489b79e55929c98bff4346cf1afa0ea to your computer and use it in GitHub Desktop.
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