forked from ra100/Mutation_Maker
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (31 loc) · 1.05 KB
/
Dockerfile
File metadata and controls
41 lines (31 loc) · 1.05 KB
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
38
39
40
41
FROM amazonlinux:2.0.20220719.0
LABEL maintainer="Mutation Maker https://github.com/Merck/Mutation_Maker"
# Basic Linux tools
RUN yum update -y && \
yum -y install yum-utils && \
yum -y groupinstall development && \
yum -y install zlib-devel openssl-devel bzip2 bzip2-devel readline-devel sqlite3-dev && \
yum -y install vim && \
yum -y install wget && \
yum -y install gcc && \
yum -y install python36
# Set locale
ENV LC_ALL=en_US.utf8
ENV LANG=en_US.utf8
# Install Pyenv
RUN git clone https://github.com/yyuu/pyenv.git /root/.pyenv && \
echo 'export PATH="/root/.pyenv/bin:$PATH"' >> /root/.bashrc && \
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> /root/.bashrc && \
echo 'eval "$(pyenv init -)"' >> /root/.bashrc
# Install Python 3.6 using Pyenv
RUN source /root/.bashrc && \
pyenv install 3.6.1 && \
pyenv global 3.6.1
# Install Python dependencies
COPY requirements.txt /var/tmp/
RUN python3 -m pip install -r /var/tmp/requirements.txt
RUN mkdir -p /lambda
COPY . /lambda
WORKDIR /lambda
EXPOSE 3001
CMD /bin/bash