This repository has been archived on 2021-08-31. You can view files and clone it, but cannot push or open issues or pull requests.
mattermost/web/Dockerfile
Frank Maker 586b885473 Add trailing backslash to fix "not a directory" error
Running this Dockerfile on Fedora 22 throws a "not a directory" error when it reaches "ADD cert/cert.pem /cert". Adding a backslash to the path resolves the issue.
2016-01-05 11:34:08 -08:00

26 lines
611 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 mkdir /cert
ADD cert/cert.pem /cert/
ADD cert/private/key-no-password.pem /cert/
RUN chmod +x /docker-entry.sh
# 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