-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
55 lines (47 loc) · 1.5 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
FROM ubuntu:20.04
MAINTAINER "Markus Näther <naether.markus@gmail.com>"
ENV HOME /root
ENV DEBIAN_FRONTEND noninteractive
# Use Supervisor to run and manage all other services
CMD ["/usr/local/bin/supervisord", "-c", "/etc/supervisord.conf"]
# Install required packages
RUN apt-get update && apt-get install -y \
curl \
libcurl4 \
python \
cron \
nano \
mcrypt \
nginx \
php7.4-fpm \
php7.4-cli \
php7.4-gd \
php7.4-sqlite \
php7.4-curl \
php7.4-opcache \
php7.4-mbstring \
php7.4-zip \
php7.4-xml \
php7.4-sqlite3 \
php-mysql \
php-sqlite3 \
redis-server \
nodejs \
composer \
npm
ADD . /var/www
WORKDIR /var/www
RUN phpenmod pdo_sqlite
#&& a2enmod rewrite
#RUN echo "extension=pdo_sqlite" >> /etc/php/7.4/cli/php.ini
#RUN echo "extension=sqlite3" >> /etc/php/7.4/cli/php.ini
# Migrate all schemes to the sqlite database
RUN touch database/database.sqlite
RUN service nginx restart
RUN mkdir -p storage/framework/sessions storage/framework/views storage/framework/cache && composer install
RUN ls ./
RUN php artisan config:clear
# TODO: RUN php artisan migrate
# Fill with information
# TODO: RUN php artisan db:seed
CMD php artisan serve --host 0.0.0.0