aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmiliano Ciavatta2020-09-05 10:46:09 +0000
committerGitHub2020-09-05 10:46:09 +0000
commit1e8a07f770c85a2ed6159798d1fb00dbebe08e98 (patch)
tree753fba1c7a2d75beafd76df5d41cb34d0f3935f7
parentfedef499a96a560c0144868e50d20cc7fc3aa549 (diff)
parentbe3e7e4a98af2cd570db3a50d9037ee679b38f24 (diff)
Merge pull request #5 from TheLillo/develop
Update Dockerfile to use packages already build
-rw-r--r--Dockerfile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index 4d5bda3..0092628 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,9 @@
-FROM eciavatta/caronte-env:latest
+FROM ubuntu:20.04
+
+# Install tools and libraries
+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
@@ -8,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