-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (27 loc) · 742 Bytes
/
Dockerfile
File metadata and controls
37 lines (27 loc) · 742 Bytes
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
FROM php:7.4-fpm
COPY . /usr/src/blog
WORKDIR /usr/src/blog
# install tools
RUN apt-get -y update
RUN apt-get -y install git
RUN apt-get -y install vim
RUN apt-get install zip unzip
RUN apt-get -y install libxml2-dev
# install PHP extenstions
RUN docker-php-ext-install pdo
RUN docker-php-ext-install pdo_mysql
RUN docker-php-ext-install tokenizer
RUN docker-php-ext-install xml
#node js
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
RUN apt-get install -y nodejs
# install composer
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
# install app
RUN composer install -vvv
RUN npm install
RUN composer update
RUN npm run dev
COPY entrypoint.sh /entrypoint.sh
CMD ["/entrypoint.sh"]
EXPOSE 8000