forked from cdisc-org/cdisc-rules-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile
More file actions
24 lines (24 loc) · 874 Bytes
/
dockerfile
File metadata and controls
24 lines (24 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM ubuntu:latest
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /app
# Install dependencies
RUN apt-get update && apt-get install -y \
software-properties-common \
curl \
unzip \
jq \
&& add-apt-repository ppa:deadsnakes/ppa \
&& apt-get update \
&& apt-get install -y \
python3.10 \
python3.10-distutils \
&& rm -rf /var/lib/apt/lists/*
# Download the latest release
RUN LATEST_RELEASE_URL=$(curl -s https://api.github.com/repos/cdisc-org/cdisc-rules-engine/releases/latest | jq -r '.assets[] | select(.name == "core-ubuntu-latest.zip") | .browser_download_url') \
&& curl -L -o core-ubuntu-latest.zip "$LATEST_RELEASE_URL" \
&& unzip core-ubuntu-latest.zip -d cdisc-rules-engine \
&& rm core-ubuntu-latest.zip \
&& mv cdisc-rules-engine/* . \
&& rmdir cdisc-rules-engine \
&& chmod +x /app/core
CMD ["/bin/sh"]