-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Dockerfile and instructions for running perch in a container.
PiperOrigin-RevId: 586894152
- Loading branch information
1 parent
5a10a2c
commit 8f85917
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM python:3.11 | ||
|
||
# Environment variables | ||
ENV PIP_DISABLE_PIP_VERSION_CHECK=1 | ||
ENV PIP_NO_CACHE_DIR=1 | ||
ENV POETRY_VERSION=1.6.1 | ||
|
||
# Install poetry | ||
RUN python -m pip install "poetry==$POETRY_VERSION" | ||
|
||
# Install native dependencies | ||
RUN apt-get -y update && apt-get -y install libsndfile1 ffmpeg | ||
|
||
# Instal dependencies specified in the poetry configs | ||
WORKDIR /app | ||
ADD . /app | ||
RUN poetry install | ||
|
||
ENTRYPOINT [ "/usr/local/bin/poetry", "run" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters