~ianmjones/ianmjones.com

ianmjones.com/Dockerfile -rw-r--r-- 654 bytes
252333bbIan M. Jones Back in the Always Developing saddle. 2 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Build
FROM golang:alpine AS builder

WORKDIR /go/src/github.com/PierreZ/

RUN apk --no-cache add git && \
	git clone https://github.com/PierreZ/goStatic.git

RUN cd goStatic && go build -ldflags="-s" -tags netgo -installsuffix netgo -o ./goStatic

# Dist
FROM alpine

WORKDIR /

COPY --from=builder /go/src/github.com/PierreZ/goStatic/goStatic /usr/bin/goStatic

RUN apk --no-cache add gmnisrv && \
	mkdir -p /data/gemini/certs && \
	chown nobody:nobody /data/gemini/certs

COPY ./entrypoint.sh .
COPY ./gmnisrv.ini /usr/etc/

COPY ./public.html/ /srv/http/
COPY ./public.gmi/ /srv/gemini/

EXPOSE 8043 1965
USER nobody

ENTRYPOINT ["./entrypoint.sh"]