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-- file download

4c7b023 Jakob Wakeling 2023-12-17 20:00:10
0
FROM golang:alpine as build
4c7b023 Jakob Wakeling 2023-12-17 20:00:10
1
RUN apk update
4c7b023 Jakob Wakeling 2023-12-17 20:00:10
2
RUN apk upgrade
4c7b023 Jakob Wakeling 2023-12-17 20:00:10
3
RUN apk add --no-cache build-base
4c7b023 Jakob Wakeling 2023-12-17 20:00:10
4
COPY . /app
4c7b023 Jakob Wakeling 2023-12-17 20:00:10
5
WORKDIR /app
4c7b023 Jakob Wakeling 2023-12-17 20:00:10
6
ARG version
4c7b023 Jakob Wakeling 2023-12-17 20:00:10
7
RUN VERSION=$version make build
4c7b023 Jakob Wakeling 2023-12-17 20:00:10
8
4c7b023 Jakob Wakeling 2023-12-17 20:00:10
9
FROM alpine:latest
4c7b023 Jakob Wakeling 2023-12-17 20:00:10
10
RUN apk update
4c7b023 Jakob Wakeling 2023-12-17 20:00:10
11
RUN apk upgrade
4c7b023 Jakob Wakeling 2023-12-17 20:00:10
12
RUN apk add --no-cache git
4c7b023 Jakob Wakeling 2023-12-17 20:00:10
13
COPY --from=build /app/bin /app/bin
4c7b023 Jakob Wakeling 2023-12-17 20:00:10
14
RUN mkdir -p /run/user/0
4c7b023 Jakob Wakeling 2023-12-17 20:00:10
15
WORKDIR /app
4c7b023 Jakob Wakeling 2023-12-17 20:00:10
16
EXPOSE 8080
add9cbf Jakob Wakeling 2024-03-15 21:24:00
17
VOLUME /etc/goit /var/lib/goit /var/log/goit
4c7b023 Jakob Wakeling 2023-12-17 20:00:10
18
ENTRYPOINT ["/app/bin/goit"]
19