From 827e433c696cf070943f374ccc85908be896ee75 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Tue, 28 Jun 2022 00:36:33 +0200 Subject: [PATCH] Fix missing JS build in Dockerfile Signed-off-by: Knut Ahlers --- Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7a67c32..6e47832 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,19 @@ FROM golang:alpine as builder COPY . /src/github.com/Luzifer/password -WORKDIR /src/github.com/Luzifer/password/cmd/password +WORKDIR /src/github.com/Luzifer/password RUN set -ex \ && apk add --no-cache \ + build-base \ git \ nodejs \ npm \ + && make compile_js + +WORKDIR /src/github.com/Luzifer/password/cmd/password + +RUN set -ex \ && go install -ldflags "-X main.version=$(git describe --tags || git rev-parse --short HEAD || echo dev)"