Skip to content

Instantly share code, notes, and snippets.

@narenaryan
Created January 10, 2021 13:08
Show Gist options
  • Select an option

  • Save narenaryan/b1d2162af640423b84e4d83a3ca6a64b to your computer and use it in GitHub Desktop.

Select an option

Save narenaryan/b1d2162af640423b84e4d83a3ca6a64b to your computer and use it in GitHub Desktop.
cursor-tutorial
# set base image
FROM python:3.8-slim
# set the working directory in the container
WORKDIR /app
# copy the dependencies file to temp directory
COPY app/requirements.txt /tmp/
# install dependencies
RUN pip install -r /tmp/requirements.txt
# copy the content of the local src directory to the working directory
COPY app /app
# run container as executable on start
ENTRYPOINT python main.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment