2021-02-17 14:16:39 +01:00
|
|
|
FROM frigate:latest
|
|
|
|
|
|
|
|
ARG USERNAME=vscode
|
|
|
|
ARG USER_UID=1000
|
|
|
|
ARG USER_GID=$USER_UID
|
|
|
|
|
|
|
|
# Create the user
|
|
|
|
RUN groupadd --gid $USER_GID $USERNAME \
|
2022-02-26 20:11:00 +01:00
|
|
|
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME -s /bin/bash \
|
2021-02-17 14:16:39 +01:00
|
|
|
#
|
|
|
|
# [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
|
|
|
|
|
2021-06-17 18:58:51 +02:00
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y git curl vim htop
|
2021-02-17 14:16:39 +01:00
|
|
|
|
|
|
|
RUN pip3 install pylint black
|
2021-05-05 00:12:35 +02:00
|
|
|
|
|
|
|
# Install Node 14
|
|
|
|
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - \
|
|
|
|
&& apt-get install -y nodejs
|
2022-02-06 14:57:17 +01:00
|
|
|
|
|
|
|
RUN npm install -g npm@latest
|