diff options
author | Andrea Giovine | 2020-09-05 10:36:05 +0000 |
---|---|---|
committer | Andrea Giovine | 2020-09-05 10:36:05 +0000 |
commit | be3e7e4a98af2cd570db3a50d9037ee679b38f24 (patch) | |
tree | 3daec1c278d37123e38a9bd0c0b16c217f379775 | |
parent | df5cc3e40458bc3be97b798155f50e2b335241b9 (diff) |
Use golang-1.14
-rw-r--r-- | Dockerfile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,7 +1,9 @@ FROM ubuntu:20.04 # Install tools and libraries -RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -qq git golang libpcap-dev libhyperscan-dev npm +RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -qq git golang-1.14 pkg-config libpcap-dev libhyperscan-dev yarnpkg + +RUN ln -sf ../lib/go-1.14/bin/go /usr/bin/go ENV GIN_MODE release @@ -11,6 +13,6 @@ WORKDIR /caronte RUN go mod download && go build -RUN npm i --global yarn && cd frontend && yarn install && yarn build +RUN cd frontend && yarnpkg install && yarnpkg build CMD ./caronte |