0% found this document useful (0 votes)
20 views1 page

Dockerfile for Python App Setup

Uploaded by

tushar.patil
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views1 page

Dockerfile for Python App Setup

Uploaded by

tushar.patil
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

FROM python:3.

11-slim

# Install build-essential for any C extensions that might be needed by dependencies


RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /app

# Copy code and requirements


COPY [Link] [Link] [Link] [Link] [Link] ./

# Install dependencies
RUN pip install --no-cache-dir -r [Link]

ENV PYTHONUNBUFFERED=1

CMD ["python", "[Link]"]

You might also like