forked from bystrogenomics/bystro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.perl
38 lines (29 loc) · 1.16 KB
/
Dockerfile.perl
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
# Use an official Ubuntu base image
FROM ubuntu:24.04
# Set environment variables
ENV PERL_VERSION=5.34.0
# Set environment variables to reduce image size
ENV DEBIAN_FRONTEND=noninteractive
# Install dependencies: sudo
RUN apt update && apt install -y git sudo
# needed for minimal installs for Perl to compile
RUN apt-get update && apt-get install -y --no-install-recommends \
perl \
man-db \
groff \
libperl-dev \
&& apt clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY perl /bystro/perl
COPY go /bystro/go
COPY install /bystro/install
COPY config /bystro/config
# Copy your install-apt.sh script into the container
COPY install-apt.sh /bystro/install-apt.sh
# Install dependencies
RUN cd /bystro && ./install-apt.sh \
&& apt clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& bash -c "source ~/.profile && go clean -modcache" && rm -rf ~/.cache/go-build ~/go/src \
&& rm -rf ~/perl5/perlbrew/build ~/.perl-cpm
WORKDIR /bystro
# Symlink everything in /bystro/perl/bin to /usr/local/bin
ENTRYPOINT ["/bin/bash", "-c", "source ~/.profile && if [ \"$#\" -eq 0 ]; then bystro-annotate.pl --help; else exec \"$@\"; fi", "--"]