-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
37 lines (23 loc) · 897 Bytes
/
Dockerfile
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
32
33
34
35
36
37
FROM node:22-alpine3.20@sha256:c9bb43423a6229aeddf3d16ae6aaa0ff71a0b2951ce18ec8fedb6f5d766cf286 AS docs_stage
WORKDIR /usr/app
COPY . /usr/app
RUN npm ci && node_modules/antora/bin/antora antora-playbook.yml
FROM golang:1.22.9-alpine3.20@sha256:8687c5e11c19f20051a7eb4680e57f3ffa59ee997ddb21432a945df8047b2065 AS build_stage
COPY . .
COPY --from=docs_stage /usr/app/build/site internal/website/resources/
RUN apk update && \
apk add make git && \
make clean unit build
FROM alpine:3.20.3@sha256:1e42bbe2508154c9126d48c2b8a75420c3544343bf86fd041fb7527e017a4b4a
ENV UID=1000
ENV GID=1000
COPY --from=build_stage /go/tilegroxy /usr/local/bin/tilegroxy
RUN apk update && \
apk upgrade --no-cache && \
mkdir /tilegroxy && \
mkdir /tilegroxy/cache && \
mkdir /tilegroxy/work && \
chown -R 1000 /tilegroxy
EXPOSE 8080
WORKDIR /tilegroxy
ENTRYPOINT [ "tilegroxy"]