26 lines
679 B
Docker
26 lines
679 B
Docker
FROM ubuntu:14.04
|
|
|
|
RUN apt-get update && apt-get install -y nginx
|
|
|
|
RUN rm /etc/nginx/sites-enabled/default
|
|
RUN ln -s /etc/nginx/sites-available/mattermost /etc/nginx/sites-enabled/mattermost
|
|
|
|
ADD mattermost /etc/nginx/sites-available/
|
|
ADD docker-entry.sh /
|
|
|
|
RUN chmod +x /docker-entry.sh
|
|
|
|
# You can see the logs using `docker-compose logs web`.
|
|
RUN ln -sf /dev/stdout /var/log/nginx/access.log
|
|
RUN ln -sf /dev/stderr /var/log/nginx/error.log
|
|
|
|
# Define mountable directories.
|
|
VOLUME ["/etc/nginx/sites-enabled", "/etc/nginx/certs", "/etc/nginx/conf.d", "/var/log/nginx", "/var/www/html"]
|
|
|
|
# Define working directory.
|
|
WORKDIR /etc/nginx
|
|
|
|
ENTRYPOINT /docker-entry.sh
|
|
|
|
EXPOSE 80 443
|