mirror of
https://github.com/Screenly/Anthias.git
synced 2026-01-03 11:48:23 -05:00
This commit fixes an issue where the nginx container does not start as a result of the nginx packaged with raspbian daemonizing by default, as well as including a conflicting virtualhost configs from under /etc/nginx/sites-enabled. Therefore, this change disables nginx daemonizing in identical manner to the nginx upstream docker containers (https://github.com/nginxinc/docker-nginx/blob/master/Dockerfile-debian.template#L106) as well as removed the package default nginx virtualhost configuration.
19 lines
423 B
Nginx Configuration File
19 lines
423 B
Nginx Configuration File
FROM balenalib/rpi-raspbian:buster
|
|
|
|
RUN apt-get update && \
|
|
apt-get -y install --no-install-recommends \
|
|
nginx && \
|
|
apt-get clean
|
|
|
|
ARG GIT_HASH
|
|
ENV GIT_HASH=$GIT_HASH
|
|
ARG GIT_SHORT_HASH
|
|
ENV GIT_SHORT_HASH=$GIT_SHORT_HASH
|
|
ARG GIT_BRANCH
|
|
ENV GIT_BRANCH=$GIT_BRANCH
|
|
|
|
COPY docker/nginx/nginx.conf /etc/nginx/sites-enabled/srly-ose.conf
|
|
RUN rm -f /etc/nginx/sites-enabled/default
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|