Created
July 11, 2021 06:58
-
-
Save sayakpaul/24c44fb0f539074ff6d72ccee6638ea8 to your computer and use it in GitHub Desktop.
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 pytorch/pytorch:latest | |
WORKDIR /app | |
# install the dependencies | |
COPY requirements.txt requirements.txt | |
RUN pip install -r requirements.txt | |
COPY . . | |
# set up environment variables | |
ENV PIXABAY_API_KEY="..." | |
ENV REDIS_IN_USE="true" | |
ENV REDISHOST="..." | |
# expose port that Flask app is listening on | |
EXPOSE 8080 | |
# run the Flask app | |
CMD ["python3", "main.py"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment