@@ -17,25 +17,41 @@ RUN yarn set version berry
1717RUN yarn install
1818RUN yarn build
1919
20- FROM --platform=linux/x86_64 alpine:latest
21-
22- # Set the working directory in the container to /app
23-
20+ FROM ubuntu:22.04
21+ # Set non-interactive mode for apt-get
22+ ENV DEBIAN_FRONTEND=noninteractive
2423
2524# Set the working directory in the container to /app
2625WORKDIR /app
2726
27+
28+ # Update package lists and install required packages
29+ RUN apt-get update && apt-get install -y \
30+ gcompat \
31+ libstdc++6 \
32+ gcc \
33+ g++ \
34+ wget \
35+ python3.11 \
36+ python3.11-dev \
37+ python3.11-venv \
38+ python3-pip \
39+ openjdk-17-jre-headless \
40+ libbz2-dev \
41+ libcurl4 \
42+ libkrb5-dev \
43+ zlib1g-dev \
44+ curl \
45+ && rm -rf /var/lib/apt/lists/*
2846# copy the server directory and dist from previous buildstage into the container at /app
2947COPY --from=build /build/dist /app/dist
3048COPY server_tsspredator /app/server_tsspredator
3149COPY requirements.txt /app
3250COPY setup.py /app
33- RUN apk add gcompat libbz2 libcurl libstdc++ krb5-dev zlib gcc zlib g++ curl-dev
51+
3452RUN wget https://hgdownload.soe.ucsc.edu/admin/exe/linux.x86_64/bedGraphToBigWig -P /app
3553RUN chmod +x /app/bedGraphToBigWig
3654
37- # Install python3.11
38- RUN apk add --update --no-cache python3-dev py3-pip
3955RUN python3 -m venv /app/env_tss_predator_web
4056ENV PATH="/app/env_tss_predator_web/bin:$PATH"
4157RUN python3 -m pip install --upgrade pip
@@ -49,7 +65,6 @@ RUN rm -rf /app/setup.py
4965
5066# Install java 17
5167COPY server_tsspredator/TSSpredator.jar /app
52- RUN apk add --update --no-cache openjdk17-jre-headless
5368
5469# Make port 5001 available to the world outside this container
5570EXPOSE 5001
0 commit comments