Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Use official Python slim image
FROM python:3.11-slim

# Set working directory inside container
WORKDIR /app

# Copy only necessary files to build context
COPY pyproject.toml .
COPY README.md .
COPY py_launch_blueprint/ ./py_launch_blueprint/
COPY tests/ ./tests/

# Set environment variable to bypass setuptools-scm git version detection
ENV SETUPTOOLS_SCM_PRETEND_VERSION=0.0.0

# Install dependencies and your package
RUN pip install --no-cache-dir .

# Define default entrypoint command
ENTRYPOINT ["py-launch"]
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
__pycache__/
.devcontainer/
.vscode/
*.pyc
*.pyo
*.pyd
*.pytest_cache/
.git/
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ docs = [


[project.scripts]
py-launch = "py_launch_blueprint.projects:main" #This creates the Docker Template
py-projects = "py_launch_blueprint.projects:main"

[build-system]
Expand Down
Loading