2018-12-30 10:26:15 +00:00
|
|
|
FROM golang:alpine as builder
|
2015-05-02 13:50:32 +00:00
|
|
|
|
2019-02-28 18:51:33 +00:00
|
|
|
COPY . /src/github.com/Luzifer/password
|
|
|
|
WORKDIR /src/github.com/Luzifer/password/cmd/password
|
2017-09-22 13:27:18 +00:00
|
|
|
|
|
|
|
RUN set -ex \
|
2022-06-27 19:56:08 +00:00
|
|
|
&& apk add --no-cache \
|
|
|
|
git \
|
|
|
|
nodejs \
|
|
|
|
npm \
|
2018-12-30 10:26:15 +00:00
|
|
|
&& go install -ldflags "-X main.version=$(git describe --tags || git rev-parse --short HEAD || echo dev)"
|
|
|
|
|
2022-06-27 19:56:08 +00:00
|
|
|
|
2018-12-30 10:26:15 +00:00
|
|
|
FROM alpine:latest
|
|
|
|
|
|
|
|
LABEL maintainer "Knut Ahlers <knut@ahlers.me>"
|
|
|
|
|
|
|
|
RUN set -ex \
|
|
|
|
&& apk --no-cache add \
|
|
|
|
ca-certificates \
|
|
|
|
mailcap
|
|
|
|
|
|
|
|
COPY --from=builder /go/bin/password /usr/local/bin/password
|
2015-05-02 13:50:32 +00:00
|
|
|
|
|
|
|
EXPOSE 3000
|
|
|
|
|
2018-12-30 10:26:15 +00:00
|
|
|
ENTRYPOINT ["/usr/local/bin/password"]
|
2017-09-22 13:27:18 +00:00
|
|
|
CMD ["--"]
|
2018-12-30 10:26:15 +00:00
|
|
|
|
|
|
|
# vim: set ft=Dockerfile:
|