Zero
Zero

Reputation: 3

How to add GITHUB_KEY and GITHUB_SECRET in dockerfile

I am running the command below in docker file.

CMD [“ bash”, GITHUB_KEY=“######” GITHUB_SECRET=“##########” ./script/server]

When I run it, I get this error message /bin/sh" 1: Syntax error: Unterminated quoted string

Upvotes: 0

Views: 455

Answers (1)

user4093955
user4093955

Reputation:

You need to have every parameter surrounded by quotes in the CMD instruction.

CMD ["bash", "GITHUB_KEY='######'", "GITHUB_SECRET='##########'", "./script/server"]

Upvotes: 1

Related Questions