-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
56 lines (48 loc) · 1.42 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
# Generated by Cloud66 Starter
FROM ubuntu:focal
#install all the dependencies
RUN apt-get update
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get install -y curl apache2 \
libapache2-mod-php \
php-pear \
php \
php-curl \
php-dev \
php-gd \
php-intl \
php-json \
php-ldap \
php-mbstring \
php-pgsql \
php-mysql \
php-soap \
php-xml \
php-zip \
libyaz4-dev \
libcurl4-gnutls-dev \
pkg-config \
iputils-ping
RUN service apache2 start
#change ownership
#RUN chown -R www-data:www-data $APP_HOME
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y apt-utils sudo || true
ENV TZ=America/Argentina/Mendoza
RUN yes "" |pecl install yaz
RUN ln -s /usr/include/x86_64-linux-gnu/curl/ /usr/local/include/curl
RUN apt-get install -y libcurl4-gnutls-dev
RUN yes "" |pecl install solr
#install ssh server
RUN apt-get install -y openssh-server
RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
# configure apache
EXPOSE 80
EXPOSE 22
EXPOSE 443
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
COPY apache2-sshd-foreground /usr/bin/
RUN chmod +x /usr/bin/apache2-sshd-foreground
#####usuario root
RUN echo 'root:sid2021' | chpasswd
RUN echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
CMD ["apache2-foreground"]