-
Notifications
You must be signed in to change notification settings - Fork 8
/
dockerfile
20 lines (16 loc) · 908 Bytes
/
dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
############################################# INSTRUCTIONS #############################################
# build image: docker build -t pyraws:latest --build-arg CACHEBUST=$(date +%s) -f dockerfile .
# run image: docker run -it --rm -p 8888:8888 pyraws:latest
############################################# END #############################################
# Use the official PyTorch base image
FROM pytorch/pytorch:1.11.0-cuda11.3-cudnn8-runtime
# Set the working directory inside the container
WORKDIR /workdir/PyProjects/
# Install Python dependencies for pyraws:
RUN apt-get update && apt-get install -y git ffmpeg libsm6 libxext6
# install pyraws
ARG CACHEBUST=1
RUN git clone -b main https://github.com/ESA-PhiLab/PyRawS.git
RUN cd PyRawS && /bin/bash -c "source ./pyraws_install.sh"
RUN echo "source activate pyraws" > ~/.bashrc
ENV PATH /opt/conda/envs/pyraws/bin:$PATH