forked from smoke-trees/Voice-synthesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
57 lines (37 loc) · 1019 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Base OS
FROM alpineintuition/base:latest
MAINTAINER Tanmay Thakur <tanmaythakurbrn2rule@gmail.com>
# Install Build Utilities
RUN apt-get update && \
#apt-get install -y gcc make apt-transport-https ca-certificates build-essential && \
apt-get install -y libsndfile-dev
RUN apt-get update && \
apt-get install -y --no-install-recommends \
unzip
RUN apt install -y python-pip && \
pip install -U pip
# Check Python Environment
RUN python --version
RUN pip --version
# set the working directory for containers
WORKDIR .
# Test Env
#RUN ./test.sh
ARG UID
ARG GID
# Create user
RUN groupadd --gid $GID docker
RUN useradd --uid $UID --gid docker --shell /bin/zsh --create-home user
WORKDIR /home/user
# Copy Files
COPY . /home/user/Voice-synthesis
WORKDIR /home/user/Voice-synthesis
# Install Dependencies
RUN ./run.sh
WORKDIR /home/user
RUN rm -rf Voice-synthesis
WORKDIR /home/user/dev
RUN chown -R user:docker /home/user
USER user
# Running the server
#CMD ["python", "app.py"]