community-skeleton icon indicating copy to clipboard operation
community-skeleton copied to clipboard

Cannot create docker image from DockerFile

Open Hekatomb opened this issue 1 year ago • 1 comments

Bug report

Description

Cannot build docker image from DockerFile because adduser is called before it is installed

Issue Description

When trying to build image from the DockerFile it fails due to missing program (adduser)

Error message :

 => ERROR [ 2/10] RUN adduser uvdesk -q --disabled-password --gecos ""                         0.5s
------
 > [ 2/10] RUN adduser uvdesk -q --disabled-password --gecos "":
0.484 /bin/sh: 1: adduser: not found

Preconditions

Please provide as detailed information about your environment as possible.

1. Any system
2. current master cbbb18356a65e107d03e47cbc2778a0983fe689c

Steps to reproduce

It is important to provide a set of clear steps to reproduce this bug.If relevant please include code samples.

1. $ git clone https://github.com/uvdesk/community-skeleton.git
2. $ cd community-skeleton
3. $ docker build -t uvdesk:uvdesk-current .

Expected result

....

Actual result

Error message :

 => ERROR [ 2/10] RUN adduser uvdesk -q --disabled-password --gecos ""                         0.5s
------
 > [ 2/10] RUN adduser uvdesk -q --disabled-password --gecos "":
0.484 /bin/sh: 1: adduser: not found

dockerpatch.patch

Hekatomb avatar May 31 '24 20:05 Hekatomb

thanks for sharing the patch.

rpatidar avatar Jun 24 '24 04:06 rpatidar