Created
March 30, 2021 20:58
-
-
Save james2doyle/f48753d983a2742dadbf588d92a96337 to your computer and use it in GitHub Desktop.
A dockerfile for python 3 projects that use pip and python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
tail -f /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment