-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (22 loc) · 1.1 KB
/
Dockerfile
File metadata and controls
31 lines (22 loc) · 1.1 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
FROM httpd:2.4
# Install Perl and the CGI module
RUN apt-get update && apt-get install -y perl libcgi-pm-perl && rm -rf /var/lib/apt/lists/*
# Install BioPerl
RUN apt-get update && apt-get install -y bioperl && rm -rf /var/lib/apt/lists/*
# Install HMMER2
RUN apt-get update && apt-get install -y hmmer2 && rm -rf /var/lib/apt/lists/*
# Install Bio::SearchIO::hmmer using cpanm
RUN apt-get update && apt-get install -y cpanminus && rm -rf /var/lib/apt/lists/*
RUN cpanm Bio::SearchIO::hmmer
# Enable the CGI script by modifying the shebang and making it executable
RUN sed -i '1c#!/usr/bin/perl' /usr/local/apache2/cgi-bin/printenv
RUN chmod +x /usr/local/apache2/cgi-bin/printenv
# Add a custom configuration file to enable CGI
COPY ./cgi-extra.conf /usr/local/apache2/conf/extra/cgi-extra.conf
# Include the custom configuration in the main httpd.conf
RUN echo "Include conf/extra/cgi-extra.conf" >> /usr/local/apache2/conf/httpd.conf
# Copy Kinomer to the container
COPY ./httpd/cgi-bin/ /usr/local/apache2/cgi-bin/
COPY ./httpd/htdocs/ /usr/local/apache2/htdocs/
# # Start the Apache server
# CMD ["httpd-foreground"]