forked from STS-Rosario/carpoolear_backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (29 loc) · 823 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
# setup OS and timezone
FROM ubuntu:18.04
LABEL Name=carpoolear_backend Version=0.0.1
ENV TZ=America/Argentina/Buenos_Aires
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone4
#install php git apache etc
RUN apt-get update -y &&\
apt-get install -y php7.2 \
curl \
php-curl \
php7.2-mysql \
php-gd \
php-cli \
php-zip \
php-mbstring \
php-xml \
unzip \
git \
apache2
#install composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
#setup apache
COPY ./000-default.conf /etc/apache2/sites-available/
RUN a2enmod rewrite && a2enmod headers
# COPY . /var/www/carpoolear/
# RUN chmod -R ugo+rw /var/www/carpoolear/storage/*
WORKDIR /var/www/carpoolear/
EXPOSE 80
CMD apachectl -D FOREGROUND