Skip to content

Instantly share code, notes, and snippets.

@Akashdesarda
Last active February 12, 2021 16:24
Show Gist options
  • Save Akashdesarda/1780396cbb52a792f2e586861ff9cb4e to your computer and use it in GitHub Desktop.
Save Akashdesarda/1780396cbb52a792f2e586861ff9cb4e to your computer and use it in GitHub Desktop.
FROM python:3.8-slim
RUN apt update && \
apt install --no-install-recommends -y build-essential gcc && \
apt clean && rm -rf /var/lib/apt/lists/*
COPY ./req.txt /req.txt
COPY ./src /src
RUN pip3 install --no-cache-dir -r /req.txt
CMD ['python3', '/src/app.py']
EXPOSE 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment