-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
34 lines (25 loc) · 1.2 KB
/
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
ARG BUILDPLATFORM=linux/amd64
ARG VERSION=snapshot
ARG API_VERSION=snapshot
# Note when updating this version also update the version in the workflow files
FROM --platform=linux/amd64 node:22.11.0 AS builder
ARG BASE_HREF=/
WORKDIR /app
COPY ./package.json /app
COPY ./package-lock.json /app
RUN npm install
COPY . /app
RUN npm run build-localized -- --base-href=${BASE_HREF}
FROM --platform=$BUILDPLATFORM ghcr.io/tailormap/tailormap-api:${API_VERSION}
LABEL org.opencontainers.image.authors="[email protected]" \
org.opencontainers.image.description="Tailormap" \
org.opencontainers.image.vendor="B3Partners BV" \
org.opencontainers.image.title="Tailormap" \
org.opencontainers.image.url="https://github.com/Tailormap/tailormap-viewer/" \
org.opencontainers.image.source="https://github.com/Tailormap/tailormap-viewer/" \
org.opencontainers.image.documentation="https://github.com/Tailormap/tailormap-viewer/" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.version="$VERSION" \
org.opencontainers.image.base.name="tailormap/tailormap-api:$API_VERSION" \
tailormap-api.version=$API_VERSION
COPY --from=builder /app/dist/app static/