add nginx and change default file locations

This commit is contained in:
Blake Blackshear
2020-11-02 05:44:16 -06:00
parent 2800c54743
commit c0a16efdc1
8 changed files with 97 additions and 13 deletions

View File

@@ -15,7 +15,7 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get -qq update \
&& apt-get upgrade -y \
&& apt-get -qq install --no-install-recommends -y \
gnupg wget unzip tzdata \
gnupg wget unzip tzdata nginx \
&& apt-get -qq install --no-install-recommends -y \
python3-pip \
&& pip3 install -U /wheels/*.whl \
@@ -27,6 +27,12 @@ RUN apt-get -qq update \
&& rm -rf /var/lib/apt/lists/* /wheels \
&& (apt-get autoremove -y; apt-get autoclean -y)
RUN pip3 install \
peewee \
voluptuous
COPY nginx/nginx.conf /etc/nginx/nginx.conf
# get model and labels
ARG MODEL_REFS=7064b94dd5b996189242320359dbab8b52c94a84
COPY labelmap.txt /labelmap.txt
@@ -38,4 +44,7 @@ RUN mkdir /cache /clips
WORKDIR /opt/frigate/
ADD frigate frigate/
CMD ["python3", "-u", "-m", "frigate"]
COPY run.sh /run.sh
RUN chmod +x /run.sh
CMD ["/run.sh"]

View File

@@ -32,9 +32,7 @@ RUN pip3 wheel --wheel-dir=/wheels \
paho-mqtt \
PyYAML \
matplotlib \
click \
peewee \
voluptuous
click
FROM scratch

View File

@@ -42,9 +42,7 @@ RUN pip3 wheel --wheel-dir=/wheels \
paho-mqtt \
PyYAML \
matplotlib \
click \
peewee \
voluptuous
click
FROM scratch