-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (20 loc) · 887 Bytes
/
Dockerfile
File metadata and controls
24 lines (20 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM --platform=$BUILDPLATFORM node:14-alpine AS BUILDER
WORKDIR /app
COPY ./package*.json ./
RUN npm install
FROM --platform=$BUILDPLATFORM node:14-alpine AS APP
ARG APP_VERSION="undefined@docker"
LABEL \
org.opencontainers.image.title="cdn-exporter" \
org.opencontainers.image.description="Prometheus exporter for ArvanCloud CDN" \
org.opencontainers.image.url="https://github.com/arvancloud/ar-prometheus-exporter" \
org.opencontainers.image.source="https://github.com/arvancloud/ar-prometheus-exporter" \
org.opencontainers.image.vendor="arvancloud" \
org.opencontainers.image.author="arvancloud" \
org.opencontainers.version="$APP_VERSION" \
org.opencontainers.image.created="$DATE_CREATED" \
org.opencontainers.image.licenses="MIT"
WORKDIR /app
COPY . .
COPY --from=BUILDER /app/node_modules node_modules
ENTRYPOINT ["node", "src/index.js"]