File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed
pages/serverless-containers/how-to Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -82,28 +82,6 @@ CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 app:app
8282```
8383</TabsTab >
8484</Tabs >
85- ``` dockerfile
86- # Use an official base image
87- FROM python:3.9-slim
88-
89- # Set the working directory in the container
90- WORKDIR /app
91-
92- # Copy the current directory contents into the container at /app
93- COPY . /app
94-
95- # Install any needed packages specified in requirements.txt
96- RUN pip install --no-cache-dir -r requirements.txt
97-
98- # Make port 80 available to the world outside this container
99- EXPOSE 80
100-
101- # Define environment variable
102- ENV NAME World
103-
104- # Run app.py when the container launches
105- CMD ["python" , "app.py" ]
106- ```
10785
10886## How to build and push your image from your dockerfile
10987
You can’t perform that action at this time.
0 commit comments