mirror of https://github.com/iconify/api.git
chore: make dockerfile work
This commit is contained in:
parent
407792e2bc
commit
a3d158f99c
10
Dockerfile
10
Dockerfile
|
|
@ -1,11 +1,11 @@
|
||||||
ARG ARCH=amd64
|
ARG ARCH=amd64
|
||||||
ARG NODE_VERSION=18
|
ARG NODE_VERSION=22
|
||||||
ARG OS=bullseye-slim
|
ARG OS=bullseye-slim
|
||||||
ARG ICONIFY_API_VERSION=3.1.1
|
ARG ICONIFY_API_VERSION=3.2.0
|
||||||
ARG SRC_PATH=./
|
ARG SRC_PATH=./
|
||||||
|
|
||||||
#### Stage BASE ########################################################################################################
|
#### Stage BASE ########################################################################################################
|
||||||
FROM ${ARCH}/node:${NODE_VERSION}-${OS} AS base
|
FROM --platform=${ARCH} node:${NODE_VERSION}-${OS} AS base
|
||||||
|
|
||||||
# This gives node.js apps access to the OS CAs
|
# This gives node.js apps access to the OS CAs
|
||||||
ENV NODE_EXTRA_CA_CERTS=/etc/ssl/certs/ca-certificates.crt
|
ENV NODE_EXTRA_CA_CERTS=/etc/ssl/certs/ca-certificates.crt
|
||||||
|
|
@ -53,8 +53,8 @@ COPY ${SRC_PATH}icons/ /data/iconify-api/icons/
|
||||||
# Build API
|
# Build API
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
#### Stage RELEASE #####################################################################################################
|
#### Stage release #####################################################################################################
|
||||||
FROM iconify-api-install AS RELEASE
|
FROM iconify-api-install AS release
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG BUILD_VERSION
|
ARG BUILD_VERSION
|
||||||
ARG BUILD_REF
|
ARG BUILD_REF
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue