File tree Expand file tree Collapse file tree 5 files changed +14
-14
lines changed Expand file tree Collapse file tree 5 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -20,20 +20,20 @@ FROM python:3.8
20
20
21
21
# Copy application dependency manifests to the container image.
22
22
# Copying this separately prevents re-running pip install on every code change.
23
- COPY requirements.txt .
23
+ COPY requirements.txt ./
24
24
25
25
# Install production dependencies.
26
26
RUN pip install -r requirements.txt
27
27
28
28
# Copy local code to the container image.
29
29
ENV APP_HOME /app
30
30
WORKDIR $APP_HOME
31
- COPY . .
31
+ COPY . ./
32
32
33
33
# Run the web service on container startup.
34
34
# Use gunicorn webserver with one worker process and 8 threads.
35
35
# For environments with multiple CPU cores, increase the number of workers
36
36
# to be equal to the cores available.
37
37
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 main:app
38
38
39
- # [END run_broken_dockerfile]
39
+ # [END run_broken_dockerfile]
Original file line number Diff line number Diff line change @@ -18,18 +18,18 @@ FROM python:3.8
18
18
19
19
# Copy application dependency manifests to the container image.
20
20
# Copying this separately prevents re-running pip install on every code change.
21
- COPY requirements.txt .
21
+ COPY requirements.txt ./
22
22
23
23
# Install production dependencies.
24
24
RUN pip install -r requirements.txt
25
25
26
26
# Copy local code to the container image.
27
27
ENV APP_HOME /app
28
28
WORKDIR $APP_HOME
29
- COPY . .
29
+ COPY . ./
30
30
31
31
# Run the web service on container startup.
32
32
# Use gunicorn webserver with one worker process and 8 threads.
33
33
# For environments with multiple CPU cores, increase the number of workers
34
34
# 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
Original file line number Diff line number Diff line change @@ -18,18 +18,18 @@ FROM python:3.8-slim
18
18
19
19
# Copy application dependency manifests to the container image.
20
20
# Copying this separately prevents re-running pip install on every code change.
21
- COPY requirements.txt .
21
+ COPY requirements.txt ./
22
22
23
23
# Install production dependencies.
24
24
RUN pip install -r requirements.txt
25
25
26
26
# Copy local code to the container image.
27
27
ENV APP_HOME /app
28
28
WORKDIR $APP_HOME
29
- COPY . .
29
+ COPY . ./
30
30
31
31
# Run the web service on container startup.
32
32
# Use gunicorn webserver with one worker process and 8 threads.
33
33
# For environments with multiple CPU cores, increase the number of workers
34
34
# 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
Original file line number Diff line number Diff line change @@ -18,18 +18,18 @@ FROM python:3.8-slim
18
18
19
19
# Copy application dependency manifests to the container image.
20
20
# Copying this separately prevents re-running pip install on every code change.
21
- COPY requirements.txt .
21
+ COPY requirements.txt ./
22
22
23
23
# Install production dependencies.
24
24
RUN pip install -r requirements.txt
25
25
26
26
# Copy local code to the container image.
27
27
ENV APP_HOME /app
28
28
WORKDIR $APP_HOME
29
- COPY . .
29
+ COPY . ./
30
30
31
31
# Run the web service on container startup.
32
32
# Use gunicorn webserver with one worker process and 8 threads.
33
33
# For environments with multiple CPU cores, increase the number of workers
34
34
# 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
Original file line number Diff line number Diff line change @@ -24,15 +24,15 @@ RUN apt-get update -y && apt-get install -y \
24
24
25
25
# Copy application dependency manifests to the container image.
26
26
# Copying this separately prevents re-running pip install on every code change.
27
- COPY requirements.txt .
27
+ COPY requirements.txt ./
28
28
29
29
# Install production dependencies.
30
30
RUN pip install -r requirements.txt
31
31
32
32
# Copy local code to the container image.
33
33
ENV APP_HOME /app
34
34
WORKDIR $APP_HOME
35
- COPY . .
35
+ COPY . ./
36
36
37
37
# Run the web service on container startup.
38
38
# Use gunicorn webserver with one worker process and 8 threads.
You can’t perform that action at this time.
0 commit comments