-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (20 loc) · 1.11 KB
/
Dockerfile
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
FROM ubuntu:20.04
ARG MUSE_VERSION=2.0.4
ARG MUSE_SHA512=8342e648d389b7feef04f870c48bcddbbbdfc85e0c5faf261e6bf68e2f48a02be3e3251691004cf7bb0164de25dc1ef8323dbe5eabc040ba54740c034337a997
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \
git g++ cmake autoconf libtool liblzma-dev zlib1g-dev libbz2-dev libcurl3-dev libssl-dev \
ca-certificates cpp make libltdl-dev wget unzip \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
WORKDIR /src/
RUN wget https://github.com/wwylab/MuSE/archive/refs/tags/v${MUSE_VERSION}.zip \
&& echo "${MUSE_SHA512} v${MUSE_VERSION}.zip" | sha512sum --strict -c \
&& unzip v${MUSE_VERSION}.zip && rm v${MUSE_VERSION}.zip
RUN cd /src/MuSE-${MUSE_VERSION} && bash ./install_muse.sh
RUN ln -s /src/MuSE-${MUSE_VERSION}/MuSE /usr/local/bin/
# Change the default user to bldocker from root
RUN groupadd -g 500001 bldocker && \
useradd -r -u 500001 -g bldocker bldocker
USER bldocker
LABEL maintainer="Sorel Fitz-Gibbon <[email protected]>" \
org.opencontainers.image.source=https://github.com/uclahs-cds/docker-MuSE