grim/hgkeeper

8f41bf671a91
Remove the access function as it's no longer needed
FROM golang:1.13-buster as build
WORKDIR /root
COPY . .
RUN go get -u github.com/mjibson/esc && \
go generate ./... && \
CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static" -s' .
FROM debian:buster-slim
RUN set -ex && \
apt-get update && \
apt-get install -y --no-install-recommends \
python libpython-dev python-pip python-setuptools build-essential \
openssh-client nvi \
&& \
pip install --no-binary :all: mercurial hg-evolve && \
apt-get remove -y --purge \
libpython2.7-dev python-pip python-setuptools build-essential \
&& \
apt-get autoremove --purge -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists
COPY --from=build /root/hgkeeper /usr/local/bin/hgkeeper
CMD ["hgkeeper", "serve"]