mirror of
https://github.com/Luzifer/password.git
synced 2024-12-20 04:41:17 +00:00
Update Dockerfile
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
4818e08744
commit
7ecce5493b
1 changed files with 5 additions and 1 deletions
|
@ -4,9 +4,13 @@ COPY . /src/github.com/Luzifer/password
|
||||||
WORKDIR /src/github.com/Luzifer/password/cmd/password
|
WORKDIR /src/github.com/Luzifer/password/cmd/password
|
||||||
|
|
||||||
RUN set -ex \
|
RUN set -ex \
|
||||||
&& apk add --update git \
|
&& apk add --no-cache \
|
||||||
|
git \
|
||||||
|
nodejs \
|
||||||
|
npm \
|
||||||
&& go install -ldflags "-X main.version=$(git describe --tags || git rev-parse --short HEAD || echo dev)"
|
&& go install -ldflags "-X main.version=$(git describe --tags || git rev-parse --short HEAD || echo dev)"
|
||||||
|
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
LABEL maintainer "Knut Ahlers <knut@ahlers.me>"
|
LABEL maintainer "Knut Ahlers <knut@ahlers.me>"
|
||||||
|
|
Loading…
Reference in a new issue