Reputation: 31
I am trying to deploy google app engine's flexible environment
. Inside my appengine
folder I have my app.yaml
and Dockerfile
. The Dockerfile has a custom entry point that requires a file in the root folder:
ENTRYPOINT [ "java","-jar","/api-server.jar","server","api-server.yaml"]
ERROR:
[INFO] ERROR: (gcloud.app.deploy) Error Response: [9]
[INFO] Application startup error:
[INFO] Exception in thread "main" java.io.FileNotFoundException: File api-server.yaml not found
Question: From what directory does the entry point command run? What is the appropriate path I need to supply to find the file?
Directory Tree:
api-server/
-api-server.yaml<br>
-src/main/appengine/<br>
--app.yaml<br>
--Dockerfile<br>
Upvotes: 1
Views: 473
Reputation: 31
So I ended up changing my Dockerfile like so:
ADD api-server.yaml /api-server.yaml
ENTRYPOINT [ "java","-jar","/api-server.jar","server","/api-server.yaml"]
This is not ideal, but it works.
Upvotes: 2