-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
37 lines (32 loc) · 1.13 KB
/
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
FROM ubuntu:20.04
RUN DEBIAN_FRONTEND=noninteractive apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get upgrade -y \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
awscli \
curl \
git \
make \
npm \
postfix \
python3-pip \
tzdata \
unzip \
&& curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \
&& unzip awscliv2.zip \
&& ./aws/install \
&& rm -r aws awscliv2.zip \
&& DEBIAN_FRONTEND=noninteractive apt-get purge -y curl unzip
WORKDIR /data/www
RUN git clone https://github.com/yeastgenome/SGDBackendDocker.git
WORKDIR /data/www/logs
WORKDIR /data/www/SGDBackendDocker
RUN git checkout master_docker \
&& pip3 install virtualenv \
&& virtualenv venv \
&& . venv/bin/activate \
&& pip3 install -U setuptools==57.5.0 \
&& make build \
&& chmod 755 /data/www/SGDBackendDocker/system_config/cron/* \
&& echo 'export $(strings /proc/1/environ | grep AWS_CONTAINER_CREDENTIALS_RELATIVE_URI)' >> /root/.profile
#CMD ["sh", "-c", ". /data/www/SGDBackendDocker/venv/bin/activate && pserve $INI_FILE --reload"]
CMD ["/bin/bash --reload"]