Skip to content

Commit

Permalink
use alpine image
Browse files Browse the repository at this point in the history
  • Loading branch information
behoyh committed Apr 4, 2022
1 parent 7ac595f commit 343d132
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Pull base image.
FROM node:16
FROM node:lts-alpine

# Install Ghost
RUN \
Expand All @@ -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 && \
Expand All @@ -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
Expand All @@ -33,4 +36,4 @@ COPY ./data /ghost-override
WORKDIR /ghost

# Define default command.
CMD ["bash", "/ghost-start"]
CMD ["sh", "/ghost-start"]
File renamed without changes.

0 comments on commit 343d132

Please sign in to comment.