-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev: added dockerfiles and devcontainer
- Loading branch information
1 parent
e6c5d13
commit bf8bfbf
Showing
7 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM ghcr.io/codespaces/macOS:latest | ||
|
||
RUN brew install [email protected] | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY requirements-dev.txt . | ||
|
||
RUN pip3 install --upgrade pip | ||
|
||
RUN pip3 install --no-cache-dir -r requirements-dev.txt | ||
|
||
COPY . . | ||
|
||
CMD ["bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM python:3.12-slim | ||
|
||
WORKDIR /usr/src/app | ||
|
||
RUN pip install --upgrade pip | ||
|
||
COPY requirements-dev.txt ./ | ||
|
||
RUN pip install --no-cache-dir -r requirements-dev.txt | ||
|
||
COPY . . | ||
|
||
CMD ["bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM mcr.microsoft.com/windows/servercore:ltsc2022 | ||
|
||
RUN powershell -Command \ | ||
Invoke-WebRequest -Uri https://www.python.org/ftp/python/3.12.0/python-3.12.0-amd64.exe -OutFile python-installer.exe ; \ | ||
Start-Process -Wait -FilePath python-installer.exe -ArgumentList '/quiet InstallAllUsers=1 PrependPath=1' ; \ | ||
Remove-Item -Force python-installer.exe | ||
|
||
WORKDIR /workspace | ||
|
||
COPY requirements-dev.txt . | ||
|
||
RUN pip install --upgrade pip | ||
|
||
RUN pip install --no-cache-dir -r requirements-dev.txt | ||
|
||
COPY . . | ||
|
||
CMD ["powershell"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"name": "Python Dev Container", | ||
"dockerFile": "./Dockerfile.ubuntu", | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"python.pythonPath": "/usr/bin/python3" | ||
}, | ||
"extensions": [ | ||
"ms-python.python" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
pytest | ||
hypothesis | ||
pytest-randomly | ||
pytest-xdist | ||
typing_extensions | ||
maturin | ||
ruff | ||
mypy | ||
isort |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
mkdocs | ||
mkdocstrings-python | ||
mkdocs-material |