-
Notifications
You must be signed in to change notification settings - Fork 196
/
Dockerfile
40 lines (27 loc) · 934 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM composer:2.7.8 AS composer
FROM php:8.3.11
RUN apt-get update \
&& apt-get install -y --no-install-recommends libicu-dev git unzip \
&& docker-php-ext-configure intl \
&& docker-php-ext-install intl \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir /daux && mkdir /build
WORKDIR /daux
COPY --from=composer /usr/bin/composer /usr/bin/composer
# Copy files
COPY composer.json /daux/composer.json
COPY composer.lock /daux/composer.lock
RUN composer install --prefer-dist --no-ansi --no-dev --no-interaction --no-progress --no-scripts --optimize-autoloader
COPY bin/ /daux/bin/
COPY libs/ /daux/libs/
COPY templates/ /daux/templates/
COPY themes/ /daux/themes/
COPY daux_libraries/ /daux/daux_libraries/
COPY global.json /daux/global.json
COPY index.php /daux/index.php
RUN ln -s /daux/bin/daux /usr/local/bin/daux
ARG DAUX_VERSION=unknown
ENV DAUX_VERSION=$DAUX_VERSION
WORKDIR /build
EXPOSE 8085
CMD ["daux"]