Goit

Simple and lightweight Git web server
git clone http://git.omkov.net/Goit
Log | Tree | Refs | README | Download

Goit/Containerfile (20 lines, 400 B) -rw-r--r-- blame download

012345678910111213141516171819
FROM golang:alpine as build
RUN apk update
RUN apk upgrade
RUN apk add --no-cache build-base
COPY . /app
WORKDIR /app
ARG version
RUN VERSION=$version make build

FROM alpine:latest
RUN apk update
RUN apk upgrade
RUN apk add --no-cache git
COPY --from=build /app/bin /app/bin
RUN mkdir -p /run/user/0
WORKDIR /app
EXPOSE 8080
VOLUME /etc/goit /var/lib/goit /var/log/goit
ENTRYPOINT ["/app/bin/goit"]