Skip to content

Instantly share code, notes, and snippets.

@engleangs
Created January 18, 2022 19:42
Show Gist options
  • Save engleangs/d084cd744e2e162e1f53b85c616cc266 to your computer and use it in GitHub Desktop.
Save engleangs/d084cd744e2e162e1f53b85c616cc266 to your computer and use it in GitHub Desktop.
FROM python:3.9
WORKDIR /code
COPY ./ /code/
RUN apt-get update
#RUN apt-get install -y iputils-ping
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
ENV MONGO_URL=mongodb://root:rootpassword@mongodb_container:27017/db_sms?retryWrites=true&w=majority
ENV KAFKA_URL=kafka:29092
CMD ["uvicorn","app.main:app", "--host","0.0.0.0", "--port", "80"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment