Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

migrating to go1.14 #19

Merged
merged 5 commits into from
Feb 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM golang:1.12 AS build
FROM golang:1.14 AS build

RUN useradd -u 10001 benthos

WORKDIR /go/src/github.com/benthosdev/benthos-lab/
COPY . /go/src/github.com/benthosdev/benthos-lab/

ENV GO111MODULE on
RUN CGO_ENABLED=0 GOOS=linux go build -mod=vendor -o ./benthos-lab ./server/benthos-lab
RUN GOOS=js GOARCH=wasm go build -ldflags="-s -w" -mod=vendor -o ./client/wasm/benthos-lab.wasm ./client/wasm/benthos-lab.go
RUN CGO_ENABLED=0 GOOS=linux go build -mod=mod -o ./benthos-lab ./server/benthos-lab
RUN GOOS=js GOARCH=wasm go build -ldflags="-s -w" -mod=mod -o ./client/wasm/benthos-lab.wasm ./client/wasm/benthos-lab.go

FROM busybox AS package

Expand Down
Loading