-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.ubuntu
34 lines (20 loc) · 1.16 KB
/
Dockerfile.ubuntu
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
FROM fedora:35
##Install PHP packages
# RUN apt-get update \
# # && echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections \
# && apt -y install php php-dev php-xml php-mbstring php-gmp php-cli php-json git composer
# && apt-get install -y git composer php php-dev
RUN dnf update -y \
&& dnf install -y php php-devel php-xml php-mbstring php-gmp php-cli php-json git composer
# RUN docker-php-ext-install mbstring gmp json xml
# #Install composer
# RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
# && php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \
# && php composer-setup.php --install-dir=/usr/local/bin --filename=composer \
# && php -r "unlink('composer-setup.php');"
#Copy project contents
COPY . /app
WORKDIR /app
#Install dependencies mentioned in composer.json and composer.lock
RUN composer install --no-interaction
CMD [ "/bin/php", "app.php" ]