Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1263a63

Browse files
authored
run: Dockerfile COPY to ./ (GoogleCloudPlatform#3665)
1 parent 7eab080 commit 1263a63

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

run/hello-broken/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,20 @@ FROM python:3.8
2020

2121
# Copy application dependency manifests to the container image.
2222
# Copying this separately prevents re-running pip install on every code change.
23-
COPY requirements.txt .
23+
COPY requirements.txt ./
2424

2525
# Install production dependencies.
2626
RUN pip install -r requirements.txt
2727

2828
# Copy local code to the container image.
2929
ENV APP_HOME /app
3030
WORKDIR $APP_HOME
31-
COPY . .
31+
COPY . ./
3232

3333
# Run the web service on container startup.
3434
# Use gunicorn webserver with one worker process and 8 threads.
3535
# For environments with multiple CPU cores, increase the number of workers
3636
# to be equal to the cores available.
3737
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 main:app
3838

39-
# [END run_broken_dockerfile]
39+
# [END run_broken_dockerfile]

run/logging-manual/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ FROM python:3.8
1818

1919
# Copy application dependency manifests to the container image.
2020
# Copying this separately prevents re-running pip install on every code change.
21-
COPY requirements.txt .
21+
COPY requirements.txt ./
2222

2323
# Install production dependencies.
2424
RUN pip install -r requirements.txt
2525

2626
# Copy local code to the container image.
2727
ENV APP_HOME /app
2828
WORKDIR $APP_HOME
29-
COPY . .
29+
COPY . ./
3030

3131
# Run the web service on container startup.
3232
# Use gunicorn webserver with one worker process and 8 threads.
3333
# For environments with multiple CPU cores, increase the number of workers
3434
# to be equal to the cores available.
35-
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 main:app
35+
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 main:app

run/markdown-preview/editor/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ FROM python:3.8-slim
1818

1919
# Copy application dependency manifests to the container image.
2020
# Copying this separately prevents re-running pip install on every code change.
21-
COPY requirements.txt .
21+
COPY requirements.txt ./
2222

2323
# Install production dependencies.
2424
RUN pip install -r requirements.txt
2525

2626
# Copy local code to the container image.
2727
ENV APP_HOME /app
2828
WORKDIR $APP_HOME
29-
COPY . .
29+
COPY . ./
3030

3131
# Run the web service on container startup.
3232
# Use gunicorn webserver with one worker process and 8 threads.
3333
# For environments with multiple CPU cores, increase the number of workers
3434
# to be equal to the cores available.
35-
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 main:app
35+
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 main:app

run/markdown-preview/renderer/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ FROM python:3.8-slim
1818

1919
# Copy application dependency manifests to the container image.
2020
# Copying this separately prevents re-running pip install on every code change.
21-
COPY requirements.txt .
21+
COPY requirements.txt ./
2222

2323
# Install production dependencies.
2424
RUN pip install -r requirements.txt
2525

2626
# Copy local code to the container image.
2727
ENV APP_HOME /app
2828
WORKDIR $APP_HOME
29-
COPY . .
29+
COPY . ./
3030

3131
# Run the web service on container startup.
3232
# Use gunicorn webserver with one worker process and 8 threads.
3333
# For environments with multiple CPU cores, increase the number of workers
3434
# to be equal to the cores available.
35-
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 main:app
35+
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 main:app

run/system-package/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ RUN apt-get update -y && apt-get install -y \
2424

2525
# Copy application dependency manifests to the container image.
2626
# Copying this separately prevents re-running pip install on every code change.
27-
COPY requirements.txt .
27+
COPY requirements.txt ./
2828

2929
# Install production dependencies.
3030
RUN pip install -r requirements.txt
3131

3232
# Copy local code to the container image.
3333
ENV APP_HOME /app
3434
WORKDIR $APP_HOME
35-
COPY . .
35+
COPY . ./
3636

3737
# Run the web service on container startup.
3838
# Use gunicorn webserver with one worker process and 8 threads.

0 commit comments

Comments
 (0)