aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorEmiliano Ciavatta2020-07-10 08:21:19 +0000
committerEmiliano Ciavatta2020-07-10 08:21:19 +0000
commitdfa7a89c91c8794ebb5f4cb1836b91e33ebf106e (patch)
tree81eefa9258f2a2ab83224554201a0efd1f8cdf96 /Dockerfile
parent7392bb59083cd862e398b3d4c0b824e078437a18 (diff)
Update docker scripts
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index 4f90ef8..4d5bda3 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,9 +1,13 @@
FROM eciavatta/caronte-env:latest
+ENV GIN_MODE release
+
COPY . /caronte
WORKDIR /caronte
RUN go mod download && go build
+RUN npm i --global yarn && cd frontend && yarn install && yarn build
+
CMD ./caronte