2023-07-14 11:39:10 +00:00
|
|
|
FROM alpine:latest AS download
|
2023-05-10 09:42:08 +00:00
|
|
|
|
2023-07-14 11:39:10 +00:00
|
|
|
RUN apk --update add --no-cache \
|
|
|
|
curl \
|
|
|
|
jq && \
|
|
|
|
curl -L https://api.github.com/repos/helm/helm/releases/latest | \
|
|
|
|
jq -r '.tag_name' | \
|
|
|
|
xargs -I {} curl -L -o /tmp/helm.tar.gz https://get.helm.sh/helm-{}-linux-amd64.tar.gz && \
|
|
|
|
tar -xzf /tmp/helm.tar.gz --strip-components=1 -C /tmp
|
|
|
|
|
|
|
|
FROM node:lts-slim
|
|
|
|
|
|
|
|
COPY --from=download /tmp/helm /usr/bin/helm
|
|
|
|
|
|
|
|
ENV LANG en_US.UTF-8
|
|
|
|
ENV LANGUAGE en_US:en
|
|
|
|
ENV LC_ALL en_US.UTF-8
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends \
|
|
|
|
jq \ &&
|
|
|
|
npm install -g --omit=optional --omit=dev \
|
2023-07-10 19:11:00 +00:00
|
|
|
json-server && \
|
2023-07-14 11:39:10 +00:00
|
|
|
npm cache clean --force && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
2023-05-10 09:42:08 +00:00
|
|
|
|
|
|
|
COPY init/entrypoint.sh /opt/entrypoint.sh
|
|
|
|
|
|
|
|
WORKDIR /data
|
|
|
|
VOLUME /data
|
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
ENTRYPOINT ["bash", "/opt/entrypoint.sh"]
|
|
|
|
CMD []
|