Skip to content

Instantly share code, notes, and snippets.

@james2doyle
Created March 30, 2021 20:58
Show Gist options
  • Save james2doyle/f48753d983a2742dadbf588d92a96337 to your computer and use it in GitHub Desktop.
Save james2doyle/f48753d983a2742dadbf588d92a96337 to your computer and use it in GitHub Desktop.
A dockerfile for python 3 projects that use pip and python
FROM python:3.8
# Setup environment
RUN cp /usr/local/bin/pip3.8 /usr/local/bin/pip3 # reenable pip3
RUN pip3 install --upgrade pip
WORKDIR /usr/src/app
# Install requirements
COPY requirements.txt ./
RUN pip3 install --no-cache-dir -r requirements.txt
COPY . .
VOLUME ["/usr/src/app"]
CMD ["/usr/src/app/entry_point.sh"]
#!/bin/bash
tail -f /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment