Skip to content

Commit 7af3910

Browse files
authored
Merge pull request #85 from Integrative-Transcriptomics/dev
Dev
2 parents 991144e + 235348a commit 7af3910

File tree

1 file changed

+23
-8
lines changed

1 file changed

+23
-8
lines changed

webapp/dockerfile

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,41 @@ RUN yarn set version berry
1717
RUN yarn install
1818
RUN 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
2625
WORKDIR /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
2947
COPY --from=build /build/dist /app/dist
3048
COPY server_tsspredator /app/server_tsspredator
3149
COPY requirements.txt /app
3250
COPY setup.py /app
33-
RUN apk add gcompat libbz2 libcurl libstdc++ krb5-dev zlib gcc zlib g++ curl-dev
51+
3452
RUN wget https://hgdownload.soe.ucsc.edu/admin/exe/linux.x86_64/bedGraphToBigWig -P /app
3553
RUN chmod +x /app/bedGraphToBigWig
3654

37-
# Install python3.11
38-
RUN apk add --update --no-cache python3-dev py3-pip
3955
RUN python3 -m venv /app/env_tss_predator_web
4056
ENV PATH="/app/env_tss_predator_web/bin:$PATH"
4157
RUN python3 -m pip install --upgrade pip
@@ -49,7 +65,6 @@ RUN rm -rf /app/setup.py
4965

5066
# Install java 17
5167
COPY 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
5570
EXPOSE 5001

0 commit comments

Comments
 (0)