File: Dockerfile

package info (click to toggle)
hyphy 2.5.69%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 26,728 kB
  • sloc: cpp: 81,964; xml: 467; lisp: 341; python: 166; javascript: 117; sh: 106; makefile: 87; ansic: 86
file content (26 lines) | stat: -rw-r--r-- 557 bytes parent folder | download | duplicates (2)
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
FROM ubuntu:24.04

# Install build dependencies
RUN apt-get update && \
    apt-get install --no-install-recommends -y build-essential cmake

# Add a non-root user
RUN groupadd -r hyphyuser && useradd -r -g hyphyuser hyphyuser

# Create a directory for the project
WORKDIR /hyphy

# Copy project files
COPY ./cmake /hyphy/cmake
COPY ./src /hyphy/src
COPY ./contrib /hyphy/contrib
COPY ./res /hyphy/res
COPY CMakeLists.txt /hyphy
COPY ./tests /hyphy/tests

RUN chown -R hyphyuser:hyphyuser .

# Install project
RUN cmake . && make -j install

USER hyphyuser