Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Copyright 2018 Google LLC
```bash
# Copyright 2024 [Your Name]
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -13,10 +14,20 @@
# limitations under the License.

# [START dockerfile]
FROM python:3.7-slim
RUN pip install flask
FROM python:3.10-slim # Upgrade to latest Python version

# Install required libraries
RUN pip install --upgrade pip && \
pip install flask requests # Add requests library for API calls

# Set working directory
WORKDIR /app

# Copy application code
COPY app.py /app/app.py

# Set entrypoint and command
ENTRYPOINT ["python"]
CMD ["/app/app.py"]
CMD ["app.py"] # Simplify command
# [END dockerfile]
```