From ba455558ec60222cac791374d6b40df59bc0f465 Mon Sep 17 00:00:00 2001 From: Aldrian Harjati Date: Thu, 21 Sep 2023 10:35:59 -0400 Subject: [PATCH] devcontainer dockerfile update: remove parent paths on pyproject and poetry files (#53) Fixed bug where user cannot setup dev-container in VS code Issue docker cannot get pyproject and poetry files because incorrect path Fix: Removing the parent path because we already defined parent path in devcontainer's build context Test: Successfully load devcontainer in my and nargis laptop --------- Co-authored-by: Aldrian Harjati --- .devcontainer/Dockerfile | 4 ++-- .gitignore | 3 +++ poetry.lock | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 56a234bb..07ef7ee9 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -2,8 +2,8 @@ FROM python:3.11-alpine LABEL maintainer="CFPB RegTech Team" -COPY ../pyproject.toml . -COPY ../poetry.lock . +COPY pyproject.toml . +COPY poetry.lock . # install git and alpine sdk for c compiler extensions RUN apk add --update git curl diff --git a/.gitignore b/.gitignore index 4bc7033e..d78d9d64 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,9 @@ # environment files .env +# idea +.idea/ + # Personal vscode settings .vscode/ diff --git a/poetry.lock b/poetry.lock index 47d2b83f..7fcbe376 100644 --- a/poetry.lock +++ b/poetry.lock @@ -642,4 +642,4 @@ files = [ [metadata] lock-version = "2.0" python-versions = "^3.11" -content-hash = "1e7826b1706c164363a4409fa2122d1bcd29e683d42f379ae5cdce3d7a9cbc70" +content-hash = "03e6adb7dcecd12194f8c44033d68666019c5bb52f8fd4bccd7301067832c9e1"