uvdesk / community-skeleton

UVdesk Opensource Community Helpdesk Project built for all to make a Full Ticketing Support System along with many more other features.
https://www.uvdesk.com
MIT License
7.15k stars 449 forks source link

Cannot create docker image from DockerFile #754

Open Hekatomb opened 1 month ago

Hekatomb commented 1 month ago

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

rpatidar commented 1 week ago

thanks for sharing the patch.