-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1784 from veg/docker
add dockerfile
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters