Fix lookup of Dockerfile in archives
Fixes https://jira.coreos.com/browse/QUAY-933
This commit is contained in:
parent
bd1f3e6bb8
commit
134433c715
2 changed files with 4 additions and 3 deletions
|
@ -61,7 +61,7 @@ export class DockerfileServiceImpl implements DockerfileService {
|
|||
return new Promise((resolve, reject) => {
|
||||
var found: boolean = false;
|
||||
files.forEach((file) => {
|
||||
if (file['name'] == 'Dockerfile') {
|
||||
if (file['path'] == 'Dockerfile' || file['path'] == '/Dockerfile') {
|
||||
this.DataFileService.blobToString(file.toBlob(), (contents: string) => {
|
||||
var result: DockerfileInfoImpl | null = DockerfileInfoImpl.forData(contents, this.Config);
|
||||
if (result == null) {
|
||||
|
|
Reference in a new issue