-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (24 loc) · 711 Bytes
/
Dockerfile
File metadata and controls
34 lines (24 loc) · 711 Bytes
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
FROM python:3.7.4
ENV PACKAGE_NAME="streamingtools"
ENV BASE_DIR=/$PACKAGE_NAME
ENV BUILD_DIR=$BASE_DIR/_build
ENV DIST_DIR=$BASE_DIR/dist
ENV DOC_DIR=$BASE_DIR/doc
RUN apt-get update && \
apt-get install make -y
RUN apt-get clean -y
RUN mkdir -p $DOC_DIR
RUN mkdir -p $BUILD_DIR
RUN mkdir -p $DIST_DIR
# Copy all content into the container
COPY doc $DOC_DIR
COPY conf.py $BASE_DIR
COPY Makefile $BASE_DIR
COPY readme.rst $BASE_DIR
COPY requirements.txt $BASE_DIR
# Download and install dependencies
RUN pip install --upgrade pip && \
pip install --upgrade -r $BASE_DIR/requirements.txt
RUN echo 'eval $(thefuck --alias)' >> /etc/bash.bashrc
ENV PYTHONPATH=$BASE_DIR
WORKDIR $BASE_DIR