Skip to content

Commit

Permalink
Use Nvidia Cuda image for Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
sabaimran committed Aug 17, 2023
1 parent 997866a commit fcccc1a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
__pycache__
.venv/
.vscode/
.vscode/
*.log
14 changes: 5 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Use the official Python image as the base image
FROM python:3.11-slim-buster
# Use Nvidia's latest Ubuntu 22.04 image as the base image
FROM nvidia/cuda:12.2.0-devel-ubuntu22.04

# Install python3.11
RUN apt update && apt install -y python3.11

# Set the working directory to /app
WORKDIR /app
Expand All @@ -14,12 +17,5 @@ RUN sed -i 's/dynamic = \["version"\]/version = "0.0.0"/' pyproject.toml && \
# Make port 8488 available to the world outside this container
EXPOSE 8488

# Set environment variables
# ARG POSTGRES_HOST
# ENV POSTGRES_HOST=$POSTGRES_HOST

# # Run migrations
# RUN python src/flint/manage.py migrate

# Run src.flint.main.py when the container launches
ENTRYPOINT ["python", "src/flint/main.py"]

0 comments on commit fcccc1a

Please sign in to comment.