forked from openedx/openedx-webhooks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (19 loc) · 677 Bytes
/
Dockerfile
File metadata and controls
23 lines (19 loc) · 677 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM python:2.7
ENV PYTHONUNBUFFERED 1
ENV PYTHONPATH /app
RUN apt-get update && apt-get install --no-install-recommends -y \
bash-completion \
exuberant-ctags \
&& rm -rf /var/lib/apt/lists/*
RUN echo 'source /usr/share/bash-completion/bash_completion' >> /etc/bash.bashrc
RUN echo 'export HISTFILE=$HOME/.bash_history/history' >> $HOME/.bashrc
ARG REQUIREMENTS_FILE
WORKDIR /app
COPY requirements requirements
RUN pip install --no-cache-dir -r requirements/${REQUIREMENTS_FILE} && rm -rf /root/.cache
ARG TINI_VERSION
RUN curl -SL \
https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini \
-o /tini
RUN chmod +x /tini
ENTRYPOINT ["/tini", "--"]