feat(dockerfile): build improvements
Some checks failed
build dev image / build-dev (push) Failing after 2m43s
Some checks failed
build dev image / build-dev (push) Failing after 2m43s
This commit is contained in:
parent
c013c6ac72
commit
837c11f553
1 changed files with 8 additions and 10 deletions
|
@ -3,8 +3,8 @@ FROM alpine:3.20.1
|
|||
WORKDIR /clone-workspace
|
||||
RUN apk update && \
|
||||
apk upgrade && \
|
||||
apk add git
|
||||
RUN git clone https://github.com/fernwerker/ownDynDNS.git
|
||||
apk add git && \
|
||||
git clone https://github.com/fernwerker/ownDynDNS.git
|
||||
|
||||
# Build container to run the app
|
||||
FROM php:8.3.9-apache
|
||||
|
@ -12,12 +12,10 @@ WORKDIR /var/www/html
|
|||
|
||||
RUN apt-get update -y && \
|
||||
apt-get upgrade -y && \
|
||||
apt-get install -y \
|
||||
libxml2-dev
|
||||
RUN docker-php-ext-install soap
|
||||
RUN apt-get clean -y
|
||||
apt-get install -y --no-install-recommends \
|
||||
libxml2-dev && \
|
||||
docker-php-ext-install soap && \
|
||||
apt-get clean -y
|
||||
|
||||
COPY --from=0 /clone-workspace/ownDynDNS /var/www/html
|
||||
COPY --from=0 /clone-workspace/ownDynDNS/.htaccess.example /var/www/html/.htaccess
|
||||
|
||||
RUN chown -R www-data:www-data /var/www/html/
|
||||
COPY --chown=www-data:www-data --from=0 /clone-workspace/ownDynDNS /var/www/html
|
||||
COPY --chown=www-data:www-data --from=0 /clone-workspace/ownDynDNS/.htaccess.example /var/www/html/.htaccess
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue