Skip to content

Instantly share code, notes, and snippets.

@masafumimori
Created November 18, 2023 08:01
Show Gist options
  • Save masafumimori/e950058a01cbd0894652498bab47d9a4 to your computer and use it in GitHub Desktop.
Save masafumimori/e950058a01cbd0894652498bab47d9a4 to your computer and use it in GitHub Desktop.
basic dockerfile for python
# FROM: https://github.com/amjadraza/pandasai-chainlit-docker-deployment-template/blob/main/Dockerfile
# The builder image, used to build the virtual environment
FROM python:3.10
WORKDIR /app
RUN apt-get update && apt-get install -y git
RUN pip install --upgrade pip
# ENV PYTHONPATH="/projects/ps-chat:$PYTHONPATH"
ENV HOST=0.0.0.0
EXPOSE 8000
COPY ./ ./
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
# Run tail -f /dev/null when the container launches
CMD ["tail", "-f", "/dev/null"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment