-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
37 lines (23 loc) · 898 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.10-alpine3.20@sha256:21edeab9ed48e9820f0b447cce6ce1900b3aa90ffce3c8b4de7fae5ac333de0c 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.0@sha256:21dc6063fd678b478f57c0e13f47560d0ea4eeba26dfc947b2a4f81f686b9f45
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"]