Skip to content

Commit

Permalink
devcontainer dockerfile update: remove parent paths on pyproject and …
Browse files Browse the repository at this point in the history
…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 <[email protected]>
  • Loading branch information
aharjati and Aldrian Harjati authored Sep 21, 2023
1 parent 0c537d2 commit d893989
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# environment files
.env

# idea
.idea/

# Personal vscode settings
.vscode/

Expand Down
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d893989

Please sign in to comment.