Pamela Fox commited on
Commit
cacb065
·
1 Parent(s): 756b997

Adding AZD feature

Browse files
.devcontainer/Dockerfile CHANGED
@@ -1,9 +1,5 @@
1
- ARG IMAGE=python:3
2
- FROM --platform=amd64 mcr.microsoft.com/devcontainers/${IMAGE}
3
 
4
  RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
5
  && apt-get -y install --no-install-recommends postgresql-client \
6
- && apt-get update && apt-get install -y xdg-utils \
7
  && apt-get clean -y && rm -rf /var/lib/apt/lists/*
8
-
9
- RUN curl -fsSL https://aka.ms/install-azd.sh | bash
 
1
+ FROM mcr.microsoft.com/devcontainers/python:3.11-bullseye
 
2
 
3
  RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
4
  && apt-get -y install --no-install-recommends postgresql-client \
 
5
  && apt-get clean -y && rm -rf /var/lib/apt/lists/*
 
 
.devcontainer/devcontainer.json CHANGED
@@ -3,6 +3,9 @@
3
  "dockerComposeFile": "docker-compose.yml",
4
  "service": "app",
5
  "workspaceFolder": "/workspace",
 
 
 
6
  "forwardPorts": [8000, 5432],
7
  "portsAttributes": {
8
  "8000": {"label": "Django port", "onAutoForward": "notify"},
 
3
  "dockerComposeFile": "docker-compose.yml",
4
  "service": "app",
5
  "workspaceFolder": "/workspace",
6
+ "features": {
7
+ "ghcr.io/azure/azure-dev/azd:latest": {}
8
+ },
9
  "forwardPorts": [8000, 5432],
10
  "portsAttributes": {
11
  "8000": {"label": "Django port", "onAutoForward": "notify"},
.devcontainer/docker-compose.yml CHANGED
@@ -5,9 +5,6 @@ services:
5
  build:
6
  context: ..
7
  dockerfile: .devcontainer/Dockerfile
8
- args:
9
- # [Choice] Python version: 3, 3.8, 3.7, 3.6
10
- IMAGE: python:3.11
11
 
12
  volumes:
13
  - ..:/workspace:cached
 
5
  build:
6
  context: ..
7
  dockerfile: .devcontainer/Dockerfile
 
 
 
8
 
9
  volumes:
10
  - ..:/workspace:cached