Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
lxy2304 committed Aug 23, 2024
1 parent 7de1bf9 commit edd3d50
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions docker/v1.3/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Use an official Python 3.12 image from the Python repository
FROM --platform=linux/amd64 python:3.12-slim

ENV PGDB_HOME=/pgdb

WORKDIR /polyglotdb

RUN mkdir -p /pgdb

RUN apt update && apt install -y \
wget \
build-essential \
libpq-dev \
tar \
libsndfile1 \
git \
cmake \
nano \
vim

# Install praat
RUN wget https://www.fon.hum.uva.nl/praat/praat6417_linux-intel64-barren.tar.gz \
&& tar -xvzf praat6417_linux-intel64-barren.tar.gz \
&& mkdir /pgdb/tools \
&& mv praat_barren /pgdb/tools/praat \
&& rm praat6417_linux-intel64-barren.tar.gz

ENV praat=/pgdb/tools/praat

# Install reaper
RUN git clone https://github.com/google/REAPER.git \
&& cd REAPER \
&& mkdir build \
&& cd build \
&& cmake .. \
&& make \
&& mv reaper /pgdb/tools/reaper \
&& cd ../.. \
&& rm -r REAPER

ENV reaper=/pgdb/tools/reaper

# Copy the config file
COPY ./config.ini /pgdb/config.ini

# Upgrade pip and install Python dependencies
RUN pip install --upgrade pip setuptools wheel
RUN pip install polyglotdb

# Set up the entry point for the container
ENTRYPOINT ["/bin/bash"]

0 comments on commit edd3d50

Please sign in to comment.