2022-06-24 21:40:13 +03:00
|
|
|
ARG REGISTRY
|
2023-05-02 06:36:41 +03:00
|
|
|
FROM ${REGISTRY}/ubi8/nodejs-18
|
2021-08-13 19:47:17 +03:00
|
|
|
|
|
|
|
LABEL MAINTAINER="aos-azure"
|
|
|
|
|
|
|
|
ARG AUTOREST_VERSION
|
|
|
|
|
|
|
|
USER 0
|
|
|
|
|
|
|
|
# Autorest prerequisites
|
|
|
|
RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \
|
|
|
|
dnf update -y && \
|
|
|
|
dnf install -y libunwind-devel libicu && \
|
|
|
|
dnf install -y python3-pip && \
|
|
|
|
dnf clean all --enablerepo=\*
|
|
|
|
|
|
|
|
# Autorest
|
|
|
|
RUN npm install -g autorest@${AUTOREST_VERSION} && \
|
2022-08-31 05:18:07 +03:00
|
|
|
autorest --reset && \
|
2021-08-13 19:47:17 +03:00
|
|
|
npm cache clean -f
|
|
|
|
|
|
|
|
ENTRYPOINT ["autorest"]
|