glcoud app deploy no longer uses Dockerfile

73 views
Skip to first unread message

Dan Cogswell

unread,
Mar 3, 2020, 9:09:44 AM3/3/20
to Google App Engine
I've got a python 3.6 application I deploy to the flexible environment. It uses a Dockerfile, which is in the same directory as app.yaml.

Last week, it was using the Dockerfile correctly. Now, when I gcloud app deploy, it looks like it's ignoring the Dockerfile and instead uploading all files to Google Cloud Storage, just like it does in the standard environment. I believe I updated gsutil and or/gcloud last week. I'm on ubuntu 18.04.4 LTS

Is there something in the new gsutil that ignores the Dockerfile? I'm currently running:
Google Cloud SDK 280.0.0
alpha 2020.02.07
app-engine-python 1.9.88
app-engine-python-extras 1.9.88
beta 2020.02.07
bq 2.0.53
cloud-datastore-emulator 2.1.0
core 2020.02.07
gsutil 4.47
kubectl 2020.02.07

Here's my Dockerfile:
FROM gcr.io/google-appengine/python
RUN apt-get update && apt-get install -y \
  binutils \
  gdal-bin \
  python-gdal
RUN virtualenv /env -p python3.6
ENV VIRTUAL_ENV /env
ENV PATH /env/bin:$PATH
ADD requirements.txt /app/requirements.txt
RUN pip install -r /app/requirements.txt
ADD . /app
CMD gunicorn -b :$PORT mysite.wsgi


Many thanks for any hlep,
Dan Cogswell

Aref Amiri (Cloud Platform Support)

unread,
Mar 3, 2020, 12:31:20 PM3/3/20
to Google App Engine
Dan,

You might want to consider updating Cloud SDK to the latest version 283.0.0 and try again. If the issue persists, I'd suggest to create a Public Issue Tracker, as this may require further investigation.
Reply all
Reply to author
Forward
0 new messages