10000 Use requirements.txt instead of hard-coded install (#6560) · orossini/python-docs-samples@2ecc840 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2ecc840

Browse files
engelkeleahecole
andauthored
Use requirements.txt instead of hard-coded install (GoogleCloudPlatform#6560)
* Use requirements.txt instead of hard-coded install Addresses issue GoogleCloudPlatform#6559 * Update run/helloworld/Dockerfile Co-authored-by: Leah E. Cole <6719667+leahecole@users.noreply.github.com>
1 parent 311a136 commit 2ecc840

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

run/helloworld/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ WORKDIR $APP_HOME
2828
COPY . ./
2929

3030
# Install production dependencies.
31-
RUN pip install Flask gunicorn
31+
RUN pip install --no-cache-dir -r requirements.txt
3232

3333
# Run the web service on container startup. Here we use the gunicorn
3434
# webserver, with one worker process and 8 threads.

0 commit comments

Comments
 (0)
0