Zeus
Zeus

Reputation: 1600

error using gcp cloud build to create dockerfile

I'm trying to build a dockerfile using google cloud platform\cloud build and the quickstart guide. I enter the steps in google shell but get the error

-bash: FROM: command not found

on the command FROM alpine (Preparing source files, step 2).

I must be making a basic mistake, I assume cloud build can create a dockerfile, and is there a command that needs to be entered before the FROM alpine command?

Upvotes: 1

Views: 360

Answers (1)

John Hanley
John Hanley

Reputation: 81454

You need to create a file named Dockerfile with an editor such as vi. Then enter the commands into the file and save.

You tried to enter the Dockerfile statements into your shell.

Upvotes: 1

Related Questions