full-stack-fastapi-template icon indicating copy to clipboard operation
full-stack-fastapi-template copied to clipboard

docker build failed, can provide docker builded container?

Open m986883511 opened this issue 2 years ago • 2 comments

II have study fastapi project, and this is a good project to deploy, I want to study it, but I cannot docker build the dockerfile. I am from China. I cannot build the project due to network or other reasons. Can you provide a compiled container?

I have change poetry to use pip install, but have problem too.

die at here: #9 [5/7] RUN bash -c "if [ true == 'true' ] ; then poetry install --no-root ; else poetry install --no-root --no-dev ; fi" #9 sha256:7a56e446b66e2b242c94d25f0e15a4050afaeb5700fb66436ef62ce34a64e2a9 #9 0.700 Creating virtualenv app-9TtSrW0h-py3.7 in /root/.cache/pypoetry/virtualenvs #9 1.183 Updating dependencies #9 1.183 Resolving dependencies...

m986883511 avatar Oct 22 '21 14:10 m986883511

@m986883511 Running this step, if there is a network issue and poetry can't establish some particular connection, it fails with explicitly mentioning the network issue.

Are there any other lines of code after this? If not, it looks like it just stalls for some reason. It happened to me a couple of times, just cancel the process and try running it again.

dmitrybabanovforreal avatar Nov 22 '21 20:11 dmitrybabanovforreal

for me first run was the same.

I had to install poetry properly and after docker. I removed docker what was snap and installed :

Download Docker curl -fsSL get.docker.com -o get-docker.sh Install Docker using the stable channel (instead of the default "edge") CHANNEL=stable sh get-docker.sh Remove Docker install script rm get-docker.sh

since that everything works fine

calvez avatar Dec 15 '21 11:12 calvez