-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
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:23-alpine3.21@sha256:b33cf709cec003818c2eb40d3026d7611eefd52268a46e052b473f7f6dc90c9c AS docs_stage
WORKDIR /usr/app
COPY . /usr/app
RUN npm ci && node_modules/antora/bin/antora antora-playbook.yml
FROM golang:1.23.5-alpine3.21@sha256:47d337594bd9e667d35514b241569f95fb6d95727c24b19468813d596d5ae596 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.21.2@sha256:56fa17d2a7e7f168a043a2712e63aed1f8543aeafdcee47c58dcffe38ed51099
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"]