Skip to content

Commit 2980a76

Browse files
committed
docs(SRV): update
1 parent d1ed2e0 commit 2980a76

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

pages/serverless-containers/how-to/build-push-container-image.mdx

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)