forked from range-of-motion/budget
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (24 loc) · 878 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
FROM php:8.0-fpm
# Grab magical script that brings back balance throughout earth
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
# Install NGINX and other packages
RUN apt-get update && \
apt-get install -y \
nginx \
cron \
supervisor
# Configure NGINX
COPY nginx.conf /etc/nginx/sites-enabled/default
# Configure cron
COPY cron.conf /etc/cron.d/budget
# Configure Supervisor
COPY supervisord.conf /etc/supervisor/conf.d/budget.conf
# Install PHP extensions
RUN install-php-extensions pdo_mysql zip calendar gd
# Install Composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
# Install Node.js and Yarn
RUN curl -sL https://deb.nodesource.com/setup_15.x | bash - && \
apt-get install -y nodejs && \
npm install -g yarn
WORKDIR /var/www