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

20 lines
538 B
Docker
Raw Normal View History

FROM nginx:mainline-alpine
# Remove default configuration and add our custom Nginx configuration files
2018-04-15 19:33:49 +02:00
RUN rm /etc/nginx/conf.d/default.conf \
&& apk add --no-cache curl
COPY ["./mattermost", "./mattermost-ssl", "/etc/nginx/sites-available/"]
2017-11-19 12:02:45 +01:00
COPY ./security.conf /etc/nginx/conf.d/
# Add and setup entrypoint
COPY entrypoint.sh /
2018-04-15 19:33:49 +02:00
#Healthcheck to make sure container is ready
HEALTHCHECK CMD curl --fail http://localhost:80 || exit 1
ENTRYPOINT ["/entrypoint.sh"]
2018-04-15 19:33:49 +02:00
VOLUME ["/var/run", "/etc/nginx/conf.d/", "/var/cache/nginx/"]