docker compose file is now workign

This commit is contained in:
Jun-te Kim 2025-03-26 14:44:49 +00:00
parent 5a3f1478c8
commit ce7a3163ef
3 changed files with 14 additions and 4 deletions

View file

@ -16,3 +16,9 @@ RUN useradd -m -s /usr/bin/bash ${USER} \
# Install Poetry
RUN pip install --no-cache-dir poetry
# Set the working directory
WORKDIR /workspaces/survey-extractor
# (Optional) Ensure the user owns the working directory
RUN chown -R ${USER}:${USER} /workspaces/survey-extractor

View file

@ -3,13 +3,17 @@
"dockerComposeFile": "docker-compose.yml",
"service": "survey-extractor",
"remoteUser": "vscode",
"workspaceFolder": "/workspaces/survey-extractor",
"postStartCommand": "bash .devcontainer/post-install.sh",
"mounts": [
"source=${localEnv:HOME},target=/workspaces/home,type=bind",
"source=${localEnv:HOME}/.ssh,target=/home/vscode/.ssh,type=bind"
"source=${localEnv:HOME},target=/workspaces/home,type=bind"
// "source=${localEnv:HOME}/.ssh,target=/home/vscode/.ssh,type=bind"
],
"customizations": {
"vscode": {
"settings": {
"files.defaultWorkspace": "/workspaces/survey-extractor"
},
"extensions": [
"ms-python.python",
"ms-azuretools.vscode-docker",

View file

@ -6,9 +6,9 @@ services:
build:
context: ..
dockerfile: .devcontainer/Dockerfile
volumes:
- ..:/workspaces:cached
command: sleep infinity
volumes:
- ..:/workspaces/survey-extractor
depends_on:
- db
networks: