From b84eb56047acf071a5c3db746a5fba312dd2b5c4 Mon Sep 17 00:00:00 2001 From: Gabor Nemes Date: Wed, 15 May 2024 14:53:28 +0200 Subject: [PATCH] use node --- Dockerfile | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 29338e0..c500ace 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,7 @@ -FROM alpine:3.19.1 +FROM node:22.1-alpine3.19 -ENV CONTENTFUL_VERSION="3.3.1" +RUN npm install -g contentful-cli -RUN wget -O contentful.zip https://github.com/contentful/contentful-cli/releases/download/v${CONTENTFUL_VERSION}/contentful-cli-linux-${CONTENTFUL_VERSION}.zip && \ - unzip contentful.zip && \ - rm contentful.zip && \ - chmod +x contentful && \ - mv contentful /bin +USER node -RUN adduser -D contentful -USER contentful \ No newline at end of file +ENTRYPOINT [ "/usr/local/bin/contentful" ] \ No newline at end of file