-
Notifications
You must be signed in to change notification settings - Fork 90
/
Dockerfile
41 lines (29 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
34
35
36
37
38
39
40
41
FROM ubuntu:20.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get -qq update -y && \
apt-get -y -qq install \
curl \
wget \
gnupg \
host \
nginx \
mysql-server \
php-fpm \
php-pdo \
php-mysql \
php-curl \
php-xml && \
echo "Packages Installed"
# install google chrome
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
RUN sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
RUN apt-get --allow-unauthenticated -y update
RUN apt-get --allow-unauthenticated install -y google-chrome-stable
COPY app /var/www/
RUN chown -R www-data:www-data /var/www
ADD default /etc/nginx/sites-available/default
COPY startup.sh /startup.sh
COPY db.sql /db.sql
RUN chmod +x /startup.sh
EXPOSE 80
CMD ["/startup.sh"]