Dockerfile 599 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
FROM debian:buster

RUN apt-get update && apt-get install -y \
    composer \
    php7.2 \
    php-mbstring \
    php7.2-xml\
    php-zip \
    php-gd \
    php-sqlite3 \
    php-mysql \
    php-curl \
    redis-server \
    sqlite3 \
    nodejs \
    libpng-dev \
17
    unzip \
18 19 20 21 22 23
    npm
RUN npm install gulp -g

COPY . /app
WORKDIR app
RUN mv config/sumas.xml.example config/sumas.xml && mv .env.example .env
24
RUN composer install --no-plugins --no-scripts
25 26 27 28 29 30 31 32
RUN npm install
RUN npm run dev

RUN php artisan key:generate

CMD redis-server --daemonize yes && php artisan serve --host=0.0.0.0

EXPOSE 8000