Pamela Fox
commited on
Commit
·
da9b1f7
1
Parent(s):
9595e1d
Remove azd reliance
Browse files
.devcontainer/Dockerfile
CHANGED
@@ -6,4 +6,8 @@ RUN curl -fsSL https://aka.ms/install-azd.sh | bash
|
|
6 |
ENV PYTHONUNBUFFERED 1
|
7 |
|
8 |
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
9 |
-
&& apt-get -y install --no-install-recommends postgresql-client
|
|
|
|
|
|
|
|
|
|
6 |
ENV PYTHONUNBUFFERED 1
|
7 |
|
8 |
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
9 |
+
&& apt-get -y install --no-install-recommends postgresql-client \
|
10 |
+
&& apt-get update && apt-get install -y xdg-utils \
|
11 |
+
&& apt-get clean -y && rm -rf /var/lib/apt/lists/*
|
12 |
+
|
13 |
+
RUN curl -fsSL https://aka.ms/install-azd.sh | bash
|
.devcontainer/devcontainer.json
CHANGED
@@ -1,16 +1,13 @@
|
|
1 |
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
|
2 |
// https://github.com/microsoft/vscode-dev-containers/tree/v0.245.0/containers/python-3
|
3 |
{
|
4 |
-
"name": "
|
5 |
"dockerComposeFile": "docker-compose.yml",
|
6 |
"service": "app",
|
7 |
"workspaceFolder": "/workspace",
|
8 |
"forwardPorts": [8000, 5432],
|
9 |
|
10 |
"features": {
|
11 |
-
"ghcr.io/devcontainers/features/azure-cli:1": {
|
12 |
-
"version": "latest"
|
13 |
-
},
|
14 |
"ghcr.io/devcontainers/features/github-cli:1": {
|
15 |
"version": "latest"
|
16 |
},
|
@@ -68,7 +65,6 @@
|
|
68 |
}
|
69 |
},
|
70 |
|
71 |
-
|
72 |
// Use 'postCreateCommand' to run commands after the container is created.
|
73 |
"postCreateCommand": "pip install -r requirements-dev.txt && pre-commit install",
|
74 |
|
|
|
1 |
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
|
2 |
// https://github.com/microsoft/vscode-dev-containers/tree/v0.245.0/containers/python-3
|
3 |
{
|
4 |
+
"name": "django-quiz-app",
|
5 |
"dockerComposeFile": "docker-compose.yml",
|
6 |
"service": "app",
|
7 |
"workspaceFolder": "/workspace",
|
8 |
"forwardPorts": [8000, 5432],
|
9 |
|
10 |
"features": {
|
|
|
|
|
|
|
11 |
"ghcr.io/devcontainers/features/github-cli:1": {
|
12 |
"version": "latest"
|
13 |
},
|
|
|
65 |
}
|
66 |
},
|
67 |
|
|
|
68 |
// Use 'postCreateCommand' to run commands after the container is created.
|
69 |
"postCreateCommand": "pip install -r requirements-dev.txt && pre-commit install",
|
70 |
|