forked from thijsvanloef/starnet-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.cuda
25 lines (19 loc) · 847 Bytes
/
Dockerfile.cuda
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
FROM nvidia/cuda:11.7.0-runtime-ubuntu20.04
RUN apt-get update && apt-get install -y \
wget \
unzip \
libcudnn8 \
&& apt-get clean autoclean \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
RUN wget -c https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-gpu-linux-x86_64-2.8.0.tar.gz -O - | tar -xz -C /usr/local
RUN ldconfig /usr/local/lib
ENV TF_FORCE_GPU_ALLOW_GROWTH=true
ENV PARALLEL=false \
STRIDE=128
WORKDIR /starnet
RUN wget -q "https://www.starnetastro.com/wp-content/uploads/2022/03/StarNetv2CLI_linux.zip" -O starnet.zip && unzip -j -q starnet.zip -d /starnet/application && chmod +x /starnet/application/starnet++ && rm starnet.zip
COPY scripts/* ./
RUN rm /starnet/application/libtensorflow*
RUN mkdir /starnet/input /starnet/output
ENTRYPOINT [ "./start-cuda.sh" ]