hrezaeianzadeh / django-screen-listing

1 stars 0 forks source link

docker-compose build issue #1

Open parhamgh2020 opened 8 months ago

parhamgh2020 commented 8 months ago

An error has occurred while attempting to execute the "docker-compose build" command.

error: failed to solve: executor failed running [/bin/sh -c apt-get install wget gcc python3 python3-pip python3-psycopg2 -y && apt-get autoremove -y && apt-get clean -y]: exit code: 100

The issue lies in creating the image from the Dockerfile at line 9.

parhamgh2020 commented 8 months ago

The base image used is "ubuntu:22.04", which may not be the most optimized image for the specific requirements of the code

parhamgh2020 commented 8 months ago

Why are packages like wget and gcc needed?

hrezaeianzadeh commented 8 months ago

Yeah I just copied the line from another Dockerfile of mine, but I can optimize it for you shortly for less packages

hrezaeianzadeh commented 8 months ago

An error has occurred while attempting to execute the "docker-compose build" command.

error: failed to solve: executor failed running [/bin/sh -c apt-get install wget gcc python3 python3-pip python3-psycopg2 -y && apt-get autoremove -y && apt-get clean -y]: exit code: 100

The issue lies in creating the image from the Dockerfile at line 9.

but the error you are mentioning is odd because the build process working fine for me