Actualiser Dockerfile
This commit is contained in:
parent
a3f701dd45
commit
3399aabc9d
@ -4,14 +4,18 @@ WORKDIR /app
|
|||||||
ARG REPO_URL
|
ARG REPO_URL
|
||||||
ARG DEPLOY_KEY_B64
|
ARG DEPLOY_KEY_B64
|
||||||
|
|
||||||
|
# Config SSH pour la Deploy Key
|
||||||
RUN mkdir -p /root/.ssh && chmod 700 /root/.ssh
|
RUN mkdir -p /root/.ssh && chmod 700 /root/.ssh
|
||||||
RUN echo "$DEPLOY_KEY_B64" | base64 -d > /root/.ssh/id_rsa && chmod 600 /root/.ssh/id_rsa
|
RUN echo "$DEPLOY_KEY_B64" | base64 -d > /root/.ssh/id_rsa && chmod 600 /root/.ssh/id_rsa
|
||||||
RUN ssh-keyscan git.ewelit.fr >> /root/.ssh/known_hosts
|
RUN ssh-keyscan git.ewelit.fr >> /root/.ssh/known_hosts
|
||||||
|
|
||||||
|
# Cloner le repo privé de l'app
|
||||||
RUN git clone --depth=1 $REPO_URL .
|
RUN git clone --depth=1 $REPO_URL .
|
||||||
|
|
||||||
|
# Installer les dépendances PHP
|
||||||
RUN composer install --no-interaction --prefer-dist --no-progress
|
RUN composer install --no-interaction --prefer-dist --no-progress
|
||||||
|
|
||||||
|
# Stage runtime PHP-FPM
|
||||||
FROM php:8.4-fpm-alpine
|
FROM php:8.4-fpm-alpine
|
||||||
|
|
||||||
RUN apk add --no-cache icu-libs libzip git bash \
|
RUN apk add --no-cache icu-libs libzip git bash \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user