Skip to content

Instantly share code, notes, and snippets.

@ashleve
Created May 19, 2021 00:47
Show Gist options
  • Save ashleve/29b436eff1bcc1041de019dd8415ffc9 to your computer and use it in GitHub Desktop.
Save ashleve/29b436eff1bcc1041de019dd8415ffc9 to your computer and use it in GitHub Desktop.
Dockerfile for lightning-hydra-template
# Build commands:
# docker build -t project_name .
# docker run --gpus all -it --rm project_name
# Build from official Nvidia PyTorch image
# GPU-ready with built in Apex mixed-precision support
# https://ngc.nvidia.com/catalog/containers/nvidia:pytorch
FROM nvcr.io/nvidia/pytorch:21.04-py3
# Copy all files
COPY . workspace/
# Install requirements
RUN pip install -r requirements.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment