forked from PrincetonUniversity/STELLOPT
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (21 loc) · 739 Bytes
/
Dockerfile
File metadata and controls
27 lines (21 loc) · 739 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
25
26
27
# Build with docker buildx build --tag libstell .
# Debian image of install
FROM lazerson/stellopt-compile:latest
LABEL version="1.0"
LABEL description="Docker build of LIBSTELL and intitial file copy."
# Set Environment variables
ARG CODE="LIBSTELL"
ARG MYHOME="/home/STELLOPT/bin"
ENV MACHINE="debian"
ENV STELLOPT_PATH=/home/STELLOPT
RUN echo Building ${CODE} for ${MACHINE} in Docker
# Set the working directory
WORKDIR $STELLOPT_PATH
# Copy the entire local directory to the container
COPY . $STELLOPT_PATH
# Compile STELLOPT
RUN cd $STELLOPT_PATH && ./build_all -j1 $CODE 2>&1 | tee log.build
# Copy all built executables onto global path
RUN cp -RP ${STELLOPT_PATH}/bin/* /usr/local/bin/
# If you run this
CMD ["/bin/bash"]