forked from adamliter/psiturk-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdev
30 lines (26 loc) · 773 Bytes
/
dev
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
FROM ubuntu:latest
MAINTAINER Adam Liter <[email protected]>
ARG PSITURK_VERSION
ENV PSITURK_VERSION=${PSITURK_VERSION:-2.2.3} \
PSITURK_GLOBAL_CONFIG_LOCATION=/psiturk/
RUN apt-get update -y \
&& apt-get upgrade -y \
&& apt-get install -y \
python-dev \
python-pip \
libmysqlclient-dev \
&& test ${PSITURK_VERSION} = "dev" \
&& apt-get install -y \
git \
&& pip install \
git+https://github.com/NYUCCL/psiTurk.git@master \
PyMySQL \
|| pip install --upgrade \
psiturk==${PSITURK_VERSION} \
mysql-python \
certifi \
&& apt-get clean autoclean \
&& apt-get autoremove -y \
&& rm -rf /var/lib/{apt,dpkg,cache,log}/
WORKDIR /psiturk
EXPOSE 22362