accounting/Dockerfile
Knut Ahlers 3149595df6
CI: Add test / build / publish
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-01-28 00:51:01 +01:00

31 lines
503 B
Docker

FROM golang:alpine as builder
COPY . /go/src/accounting
WORKDIR /go/src/accounting
RUN set -ex \
&& apk add --no-cache \
git \
make \
nodejs \
npm \
&& make build
FROM alpine:latest
LABEL maintainer "Knut Ahlers <knut@ahlers.me>"
RUN set -ex \
&& apk --no-cache add \
ca-certificates
COPY --from=builder /go/src/accounting/accounting /usr/local/bin/accounting
EXPOSE 3000
USER 1000
ENTRYPOINT ["/usr/local/bin/accounting"]
CMD ["--"]
# vim: set ft=Dockerfile: