From 343d132820a1e1658a9785d647ef6cf89fde6820 Mon Sep 17 00:00:00 2001 From: behoyh Date: Mon, 4 Apr 2022 13:44:35 -0400 Subject: [PATCH] use alpine image --- Dockerfile | 11 +++++++---- start.bash => start.sh | 0 2 files changed, 7 insertions(+), 4 deletions(-) rename start.bash => start.sh (100%) diff --git a/Dockerfile b/Dockerfile index dc23619..1d3706e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Pull base image. -FROM node:16 +FROM node:lts-alpine # Install Ghost RUN \ @@ -10,6 +10,9 @@ RUN \ cd /ghost && \ npm install --production +# Install git +RUN apk add git + # Install Google Drive Integration RUN cd /ghost && \ mkdir content/adapters/storage && \ @@ -18,10 +21,10 @@ RUN cd /ghost && \ cd ghost-google-drive && \ npm install -RUN useradd ghost --home /ghost +RUN adduser ghost -D --home /ghost # Add files. -ADD start.bash /ghost-start +ADD start.sh /ghost-start # Set environment variables. ENV NODE_ENV development @@ -33,4 +36,4 @@ COPY ./data /ghost-override WORKDIR /ghost # Define default command. -CMD ["bash", "/ghost-start"] +CMD ["sh", "/ghost-start"] diff --git a/start.bash b/start.sh similarity index 100% rename from start.bash rename to start.sh