Closed
Description
Description
What is wrong or what would you like to see improved?
After doing azd up it seems that packaging service web (Building Docker image) fails.
(x) Failed: Packaging service web
ERROR: error executing step command 'package --all': failed building service 'web': building container: web at .: building image: exit code: 1, stdout: , stderr: #0 building with "default" instance using docker driver
#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 562B done
#1 DONE 0.0s
#2 [internal] load metadata for mcr.microsoft.com/devcontainers/python:3.12-bullseye
#2 DONE 0.1s
#3 [internal] load .dockerignore
#3 transferring context: 61B done
#3 DONE 0.0s
#4 [1/9] FROM mcr.microsoft.com/devcontainers/python:3.12-bullseye@sha256:2ff3e72b9cd16d5492ae85a0ff1741530131c4ec6b8f436f037a7e9c57a721eb
#4 CACHED
#5 [internal] load build context
#5 transferring context: 9.97MB 0.1s done
#5 DONE 0.1s
#6 [2/9] RUN apt-get update && export DEBIAN_FRONTEND=noninteractive && apt-get -y install --no-install-recommends postgresql-client && apt-get update && apt-get install -y xdg-utils && apt-get clean -y && rm -rf /var/lib/apt/lists/*
#6 50.47 Err:1 http://deb.debian.org/debian bullseye InRelease
#6 50.47 Temporary failure resolving 'deb.debian.org'
#6 55.46 Err:2 https://dl.yarnpkg.com/debian stable InRelease
#6 55.46 Temporary failure resolving 'dl.yarnpkg.com'
#6 95.51 Err:3 http://deb.debian.org/debian-security bullseye-security InRelease
#6 95.51 Temporary failure resolving 'deb.debian.org'
#6 140.6 Err:4 http://deb.debian.org/debian bullseye-updates InRelease
#6 140.6 Temporary failure resolving 'deb.debian.org'
#6 140.6 Reading package lists...
#6 140.6 W: Failed to fetch http://deb.debian.org/debian/dists/bullseye/InRelease Temporary failure resolving 'deb.debian.org'
#6 140.6 W: Failed to fetch http://deb.debian.org/debian-security/dists/bullseye-security/InRelease Temporary failure resolving 'deb.debian.org'
#6 140.6 W: Failed to fetch http://deb.debian.org/debian/dists/bullseye-updates/InRelease Temporary failure resolving 'deb.debian.org'
#6 140.6 W: Failed to fetch https://dl.yarnpkg.com/debian/dists/stable/InRelease Temporary failure resolving 'dl.yarnpkg.com'
#6 140.6 W: Some index files failed to download. They have been ignored, or old ones used instead.
#6 140.6 Reading package lists...
#6 140.6 Building dependency tree...
#6 140.6 Reading state information...
#6 140.6 E: Unable to locate package postgresql-client
#6 ERROR: process "/bin/sh -c apt-get update && export DEBIAN_FRONTEND=noninteractive && apt-get -y install --no-install-recommends postgresql-client && apt-get update && apt-get install -y xdg-utils && apt-get clean -y && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100
------
> [2/9] RUN apt-get update && export DEBIAN_FRONTEND=noninteractive && apt-get -y install --no-install-recommends postgresql-client && apt-get update && apt-get install -y xdg-utils && apt-get clean -y && rm -rf /var/lib/apt/lists/*:
140.6 Reading package lists...
140.6 W: Failed to fetch http://deb.debian.org/debian/dists/bullseye/InRelease Temporary failure resolving 'deb.debian.org'
140.6 W: Failed to fetch http://deb.debian.org/debian-security/dists/bullseye-security/InRelease Temporary failure resolving 'deb.debian.org'
140.6 W: Failed to fetch http://deb.debian.org/debian/dists/bullseye-updates/InRelease Temporary failure resolving 'deb.debian.org'
140.6 W: Failed to fetch https://dl.yarnpkg.com/debian/dists/stable/InRelease Temporary failure resolving 'dl.yarnpkg.com'
140.6 W: Some index files failed to download. They have been ignored, or old ones used instead.
140.6 Reading package lists...
140.6 Building dependency tree...
140.6 Reading state information...
140.6 E: Unable to locate package postgresql-client
------
1 warning found (use docker --debug to expand):
- JSONArgsRecommended: JSON arguments recommended for CMD to prevent unintended behavior related to OS signals (line 19)
Dockerfile:3
--------------------
2 |
3 | >>> RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
4 | >>> && apt-get -y install --no-install-recommends postgresql-client \
5 | >>> && apt-get update && apt-get install -y xdg-utils \
6 | >>> && apt-get clean -y && rm -rf /var/lib/apt/lists/*
7 |
--------------------
ERROR: failed to solve: process "/bin/sh -c apt-get update && export DEBIAN_FRONTEND=noninteractive && apt-get -y install --no-install-recommends postgresql-client && apt-get update && apt-get install -y xdg-utils && apt-get clean -y && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100
Environment
Describe your OS and dev environment (Codespaces, Dev Container, etc):
Dev container rag-postgres-openai-python_devcontainer-app:latest
Metadata
Metadata
Assignees
Labels
No labels