Docker updates
This commit is contained in:
13
docker/ttp-apache/Dockerfile
Normal file
13
docker/ttp-apache/Dockerfile
Normal file
@ -0,0 +1,13 @@
|
||||
FROM php:8-apache as apache
|
||||
ENV COMPOSER_ALLOW_SUPERUSER=1
|
||||
RUN apt-get update -y
|
||||
RUN apt-get install git libzip-dev -y
|
||||
RUN a2enmod ssl && a2enmod rewrite
|
||||
RUN docker-php-ext-install mysqli pdo pdo_mysql zip
|
||||
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
|
||||
# RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
||||
WORKDIR /var/www
|
||||
RUN rm -rf html/
|
||||
RUN composer create-project thetempusproject/thetempusproject html
|
||||
RUN chmod -R 777 html/
|
||||
RUN chown -R www-data:www-data html/
|
19
docker/ttp-apache/README.md
Normal file
19
docker/ttp-apache/README.md
Normal file
@ -0,0 +1,19 @@
|
||||
Build the image
|
||||
```
|
||||
docker build -t thetempusproject/ttp-apache:latest .
|
||||
docker build --no-cache -t thetempusproject/ttp-apache:latest .
|
||||
```
|
||||
|
||||
|
||||
|
||||
Set the proper tag for dockerhub
|
||||
```
|
||||
docker tag ttp-apache:latest thetempusproject/ttp-apache:latest
|
||||
```
|
||||
|
||||
|
||||
|
||||
Run the image
|
||||
```
|
||||
docker run -d -p 80:80 thetempusproject/ttp-apache
|
||||
```
|
Reference in New Issue
Block a user