File tree Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Use official Python slim image
2
+ FROM python:3.11-slim
3
+
4
+ # Set working directory inside container
5
+ WORKDIR /app
6
+
7
+ # Copy only necessary files to build context
8
+ COPY pyproject.toml .
9
+ COPY README.md .
10
+ COPY py_launch_blueprint/ ./py_launch_blueprint/
11
+ COPY tests/ ./tests/
12
+
13
+ # Set environment variable to bypass setuptools-scm git version detection
14
+ ENV SETUPTOOLS_SCM_PRETEND_VERSION=0.0.0
15
+
16
+ # Install dependencies and your package
17
+ RUN pip install --no-cache-dir .
18
+
19
+ # Define default entrypoint command
20
+ ENTRYPOINT ["py-launch" ]
Original file line number Diff line number Diff line change
1
+ __pycache__ /
2
+ .devcontainer /
3
+ .vscode /
4
+ * .pyc
5
+ * .pyo
6
+ * .pyd
7
+ * .pytest_cache /
8
+ .git /
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ docs = [
43
43
44
44
45
45
[project .scripts ]
46
+ py-launch = " py_launch_blueprint.projects:main" # This creates the Docker Template
46
47
py-projects = " py_launch_blueprint.projects:main"
47
48
48
49
[build-system ]
You can’t perform that action at this time.
0 commit comments