Skip to content

Commit

Permalink
feat: 🎸 alpineではなくdebianを使う用に変更
Browse files Browse the repository at this point in the history
  • Loading branch information
hijiki51 committed Jul 16, 2023
1 parent ea29094 commit 598b7d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ COPY ./ghost/core/content/themes/ghost-theme-2020 /srv/ghost/content/themes/ghos
RUN mkdir -p /srv/ghost/content/adapters/storage && \
cp -r ./node_modules/ghost-storage-adapter-s3 /srv/ghost/content/adapters/storage/s3

FROM node:18-alpine
RUN apk add --no-cache git
FROM node:18-bookworm-slim
RUN apt-get update && apt-get install -y git

ENV NODE_ENV production
COPY --from=builder /srv/ghost /srv/ghost
Expand Down
12 changes: 6 additions & 6 deletions docker/DockerfileDockerize
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ RUN mkdir -p /srv/ghost/content/adapters/storage && \

COPY ./ghost/core/content/themes/ghost-theme-2020 /srv/ghost/content/themes/ghost-theme-2020

FROM node:18-alpine
RUN apk add --no-cache git bash
FROM node:18-bookworm-slim
RUN apt-get update && apt-get install -y git
# dockerize---
ENV DOCKERIZE_VERSION v0.6.1
RUN apk add --no-cache openssl shadow\
&& wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& tar -C /usr/local/bin -xzvf dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& rm dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz
RUN apt-get update \
&& apt-get install -y wget \
&& wget -O - https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz | tar xzf - -C /usr/local/bin \
&& apt-get autoremove -yqq --purge wget && rm -rf /var/lib/apt/lists/*
# ------------

ENV NODE_ENV production
Expand Down

0 comments on commit 598b7d8

Please sign in to comment.