Skip to content

Commit

Permalink
Merge pull request #6 from cwrc/remove_nginx_fpm_startup
Browse files Browse the repository at this point in the history
Remove unused components nginx & fpm from startup
  • Loading branch information
jefferya authored May 31, 2024
2 parents f053586 + 4541e48 commit 8c7dc2e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,21 @@ RUN \
FROM --platform=$BUILDPLATFORM ${BAGGER_REPOSITORY:-ghcr.io/cwrc}/isle-bagger:${BAGGER_TAG:-v0.0.2} as prod

# Install packages and tools that allow for basic downloads.
# cleanup unused base image components
RUN --mount=type=cache,id=bagger-apk-${TARGETARCH},sharing=locked,target=/var/cache/apk \
apk add --no-cache \
python3 \
py3-requests \
&& \
rm -rf /etc/s6-overlay/s6-rc.d/user/contents.d/fpm /etc/s6-overlay/s6-rc.d/user/contents.d/nginx \
&& \
rm -rf /etc/s6-overlay/s6-rc.d/nginx* /etc/s6-overlay/s6-rc.d/fpm* \
&& \
echo '' > /root/.ash_history

WORKDIR /var/www/leaf-isle-bagger


COPY --chown=nginx:nginx rootfs/ /
COPY --chown=nginx:nginx --from=base /var/www/leaf-isle-bagger/venv /var/www/leaf-isle-bagger/venv

Expand Down

0 comments on commit 8c7dc2e

Please sign in to comment.