Skip to content

Commit a1f5b78

Browse files
committed
refactor(container): move app root out of /home
removed explicit WORKDIR in appcontainer as the base image already sets the default we want
1 parent b32d4de commit a1f5b78

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

.devcontainer/devcontainer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"dockerComposeFile": ["../compose.yml"],
55
"service": "dev",
66
"runServices": ["dev", "docs"],
7-
"workspaceFolder": "/home/calitp/app",
7+
"workspaceFolder": "/calitp/app",
88
"postAttachCommand": ["/bin/bash", ".devcontainer/postAttach.sh"],
99
"postStartCommand": ["/bin/bash", "bin/init.sh"],
1010
"customizations": {

Dockerfile

-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ RUN pip install build && python -m build
1616

1717
FROM ghcr.io/cal-itp/docker-python-web:main as appcontainer
1818

19-
WORKDIR /home/calitp/app
20-
2119
# upgrade pip
2220
RUN python -m pip install --upgrade pip
2321

compose.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
ports:
99
- "8000"
1010
volumes:
11-
- .:/home/calitp/app/
11+
- ./:/calitp/app/
1212

1313
dev:
1414
build:
@@ -20,7 +20,7 @@ services:
2020
ports:
2121
- "8000"
2222
volumes:
23-
- .:/home/calitp/app/
23+
- ./:/calitp/app/
2424

2525
docs:
2626
image: eligibility_server:dev
@@ -29,4 +29,4 @@ services:
2929
ports:
3030
- "8001"
3131
volumes:
32-
- .:/home/calitp/app
32+
- ./:/calitp/app

terraform/app_service.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ resource "azurerm_service_plan" "main" {
77
}
88

99
locals {
10-
mount_path = "/home/calitp/app/config"
10+
mount_path = "/calitp/app/config"
1111
}
1212

1313
resource "azurerm_linux_web_app" "main" {

0 commit comments

Comments
 (0)