Skip to content

Commit cfca2e7

Browse files
committed
chore(devcontainer): move requirements to file, add build/twine
1 parent 64efb2c commit cfca2e7

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.devcontainer/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ USER $USER
1515
ENV PATH "$PATH:/home/$USER/.local/bin"
1616

1717
# update pip
18-
RUN python -m pip install --upgrade pip && \
19-
pip install black flake8 pre-commit
18+
RUN python -m pip install --upgrade pip
2019

2120
# enter src directory
2221
WORKDIR /home/$USER/src
2322

2423
# copy and install packages
2524
COPY . .
25+
RUN pip install -r .devcontainer/requirements.txt
2626
RUN pip install -r tests/requirements.txt

.devcontainer/requirements.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
black
2+
build
3+
flake8
4+
pre-commit
5+
twine

0 commit comments

Comments
 (0)