Skip to content

Instantly share code, notes, and snippets.

@sayakpaul
Created July 11, 2021 06:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sayakpaul/24c44fb0f539074ff6d72ccee6638ea8 to your computer and use it in GitHub Desktop.
Save sayakpaul/24c44fb0f539074ff6d72ccee6638ea8 to your computer and use it in GitHub Desktop.
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