PHP Classes

File: Docker/nginx.docker

Recommend this page to a friend!
  Classes of Kamil   PHP API Tutorial Training Server   Docker/nginx.docker   Download  
File: Docker/nginx.docker
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP API Tutorial Training Server
Implementation of a REST API for learning purposes
Author: By
Last change:
Date: 2 years ago
Size: 535 bytes
 

Contents

Class file image Download
FROM nginx RUN apt-get update && apt-get install -y wget ENV DOCKERIZE_VERSION v0.6.0 RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \ && tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \ && rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz WORKDIR /app VOLUME ["/app"] ENTRYPOINT ["dockerize", "-template", "/etc/nginx/conf.d/mysite.template:/etc/nginx/conf.d/default.conf"] CMD ["nginx", "-g", "daemon off;"]