dockerfile.dev 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. ARG VERSION=dev
  2. ARG BASE_IMAGE=ghcr.io/fishaudio/fish-speech:${VERSION}
  3. FROM ${BASE_IMAGE}
  4. ARG TOOLS=" \
  5. git \
  6. curl \
  7. build-essential \
  8. ffmpeg \
  9. libsm6 \
  10. libxext6 \
  11. libjpeg-dev \
  12. zlib1g-dev \
  13. aria2 \
  14. zsh \
  15. openssh-server \
  16. sudo \
  17. protobuf-compiler \
  18. libasound-dev \
  19. portaudio19-dev \
  20. libportaudio2 \
  21. libportaudiocpp0 \
  22. cmake"
  23. RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
  24. --mount=type=cache,target=/var/lib/apt,sharing=locked \
  25. set -ex \
  26. && apt-get update \
  27. && apt-get -y install --no-install-recommends ${TOOLS}
  28. # Install oh-my-zsh so your terminal looks nice
  29. RUN sh -c "$(curl https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" "" --unattended
  30. # Set zsh as default shell
  31. RUN chsh -s /usr/bin/zsh
  32. ENV SHELL=/usr/bin/zsh