Dockerfile.dev 665 B

1234567891011121314151617181920212223
  1. FROM frigate:latest
  2. ARG USERNAME=vscode
  3. ARG USER_UID=1000
  4. ARG USER_GID=$USER_UID
  5. # Create the user
  6. RUN groupadd --gid $USER_GID $USERNAME \
  7. && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \
  8. #
  9. # [Optional] Add sudo support. Omit if you don't need to install software after connecting.
  10. && apt-get update \
  11. && apt-get install -y sudo \
  12. && echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
  13. && chmod 0440 /etc/sudoers.d/$USERNAME
  14. RUN apt-get install -y git curl vim
  15. RUN pip3 install pylint black
  16. # Install Node 14
  17. RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - \
  18. && apt-get install -y nodejs