f7c78e675a
make use of mainline nginx image, switch ssl/non-ssl config file based on presence of cert/key, hardcode app port since it is hardcoded in the app container as well
10 lines
237 B
Docker
10 lines
237 B
Docker
FROM nginx:mainline
|
|
|
|
RUN rm /etc/nginx/conf.d/default.conf
|
|
COPY ./mattermost /etc/nginx/sites-available/
|
|
COPY ./mattermost-ssl /etc/nginx/sites-available/
|
|
|
|
COPY docker-entry.sh /
|
|
RUN chmod +x /docker-entry.sh
|
|
ENTRYPOINT /docker-entry.sh
|