1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-20 22:08:39 +00:00
dockerfiles/rehook/Dockerfile

26 lines
726 B
Docker
Raw Normal View History

2020-10-27 10:20:06 +00:00
#
# Dockerfile for rehook
#
FROM golang:alpine AS build
ENV CGO_ENABLED=0
ENV GOOS=linux
ENV GOARCH=amd64
2021-04-14 08:38:42 +00:00
ENV GO111MODULE=off
2020-10-27 10:20:06 +00:00
WORKDIR /go/bin
RUN apk add --no-cache git
RUN go get -d -v github.com/jstemmer/rehook
RUN go build --ldflags '-s -extldflags "-static"' -i -o rehook github.com/jstemmer/rehook
FROM alpine:3
MAINTAINER EasyPi Software Foundation
WORKDIR /opt/rehook
2021-07-07 10:07:10 +00:00
RUN mkdir -p bin log var
2020-10-27 10:20:06 +00:00
RUN apk add --no-cache bash coreutils curl jq
COPY --from=build /go/src/github.com/jstemmer/rehook/public public
COPY --from=build /go/src/github.com/jstemmer/rehook/views views
COPY --from=build /go/bin/rehook bin
EXPOSE 9000 9001
ENTRYPOINT ["bin/rehook"]
2021-07-07 10:07:10 +00:00
CMD ["-db", "var/rehook.db", "-http", ":9000", "-admin", ":9001"]