-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (26 loc) · 931 Bytes
/
Dockerfile
File metadata and controls
34 lines (26 loc) · 931 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 ubuntu:16.04
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y \
git \
sqlite3 \
curl \
make build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libffi-dev liblzma-dev nginx
RUN curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
ARG PY_VERSION
RUN /root/.pyenv/bin/pyenv install $PY_VERSION
RUN rm -rf /var/lib/apt/lists/*
ENV PATH "/root/.pyenv/versions/$PY_VERSION/bin/:${PATH}"
RUN git clone --depth 1 -b 4.1.0 https://github.com/wg/wrk.git /home/wrk && \
make -C /home/wrk > /dev/null
ARG REQUIREMENTS
COPY $REQUIREMENTS /home/src/requirements.txt
RUN pip install -r /home/src/requirements.txt
# add (the rest of) our code
ARG SRC_DIR
COPY $SRC_DIR /home/src/
RUN mv /home/src/db.sqlite3 /home
WORKDIR /home/src/
ENTRYPOINT /home/src/run.sh