-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (34 loc) · 896 Bytes
/
Dockerfile
File metadata and controls
40 lines (34 loc) · 896 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
28
29
30
31
32
33
34
35
36
37
38
39
40
# Use a base image with build tools
#FROM ubuntu:latest
FROM nvidia/cuda:12.2.0-devel-ubuntu22.04
# Set envrionment variables
ENV DEBIAN_FRONTEND=noninteractive
# Install necessary packages
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
python3 python3-pip \
nmap \
vim \
build-essential \
gcc \
g++ \
make \
git \
curl \
intel-gpu-tools \
lshw \
nvidia-utils-525 \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# Set the working directory
WORKDIR /app
# Copy the Makefile and source code
COPY Makefile .
COPY *.c *.cpp *.cu .
COPY *.txt *.py .
# Build the project
#RUN make #uncomment this to run all the programs, but specify this in Makefile
RUN pip install --no-cache-dir -r requirements.txt
RUN gcc --version
RUN g++ --version
RUN nvcc --version
# Specify the command to run when the container starts
CMD ["bash"]