|
|
# Use an official Ubuntu base image
|
|
|
FROM python:3.10
|
|
|
# Set environment
|
|
|
ENV
|
|
|
# Update
|
|
|
|
|
|
|
|
|
# Create
|
|
|
WORKDIR /app
|
|
|
|
|
|
EXPOSE 5050
|
|
|
# Copy all files from the current directory to the /
|
|
|
COPY
|
|
|
|
|
|
|
|
|
# docker /tts1:latest //bash -c --gpus all -t nvidia/
|
|
|
|
|
|
RUN
|
|
|
|
|
|
RUN
|
|
|
curl
|
|
|
autoconf
|
|
|
bison
|
|
|
build-essential
|
|
|
libssl-dev
|
|
|
libyaml-dev
|
|
|
libreadline6-dev
|
|
|
zlib1g-dev
|
|
|
libncurses5-dev
|
|
|
libffi-dev
|
|
|
libgdbm6
|
|
|
libgdbm-dev
|
|
|
libdb-dev
|
|
|
apt-utils
|
|
|
|
|
|
RUN
|
|
|
. .env/bin/activate
|
|
|
pip
|
|
|
pip
|
|
|
touch /ok
|
|
|
|
|
|
# Set the default command to run when starting the container
|
|
|
CMD [] |