-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
33 lines (24 loc) · 1.11 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
ARG VERSION=snapshot
ARG API_VERSION=snapshot
# Note when updating this version also update the version in the workflow files
FROM node:22.14.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 -- --base-href=${BASE_HREF}
FROM 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/