mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-12-19 19:06:16 +01:00
164e9b7eb8
Co-authored-by: Sebastian Englbrecht <sebastian.englbrecht@kabelmail.de>
28 lines
809 B
Docker
28 lines
809 B
Docker
FROM frigate:latest
|
|
|
|
ARG USERNAME=vscode
|
|
ARG USER_UID=1000
|
|
ARG USER_GID=$USER_UID
|
|
|
|
# Create the user
|
|
RUN groupadd --gid $USER_GID $USERNAME \
|
|
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME -s /bin/bash \
|
|
#
|
|
# [Optional] Add sudo support. Omit if you don't need to install software after connecting.
|
|
&& apt-get update \
|
|
&& apt-get install -y sudo \
|
|
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
|
|
&& chmod 0440 /etc/sudoers.d/$USERNAME
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y git curl vim htop
|
|
|
|
COPY requirements-dev.txt /opt/frigate/requirements-dev.txt
|
|
RUN pip3 install -r requirements-dev.txt
|
|
|
|
# Install Node 16
|
|
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - \
|
|
&& apt-get install -y nodejs
|
|
|
|
RUN npm install -g npm@latest
|