ContainerImage.JSONServer/Dockerfile
djpbessems f6d3804907
Some checks failed
build-image / Semantic Release (Dry-run) (push) Successful in 22s
build-image / Container image (push) Successful in 1m32s
build-image / Helm chart (push) Failing after 3m51s
build-image / Semantic Release (push) Has been skipped
build: Rebase action step container image
2024-06-06 21:38:06 +10:00

39 lines
966 B
Docker

FROM alpine:latest AS download
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 \
curl \
jq \
locales && \
sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \
locale-gen && \
npm install -g --omit=optional --omit=dev \
json-server && \
npm cache clean --force && \
rm -rf /var/lib/apt/lists/*
COPY init/entrypoint.sh /opt/entrypoint.sh
WORKDIR /data
VOLUME /data
EXPOSE 80
ENTRYPOINT ["bash", "/opt/entrypoint.sh"]
CMD []