deploy-stack 0.9.5 → 0.9.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deploy-stack",
3
- "version": "0.9.5",
3
+ "version": "0.9.6",
4
4
  "description": "Provision production-ready AWS infrastructure and CI/CD pipelines in seconds.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -65,7 +65,7 @@ export async function generateTemplates(targetDir, config) {
65
65
  } else {
66
66
  const existingGitignore = await fs.readFile(targetGitignore, 'utf-8');
67
67
  if (!existingGitignore.includes('terraform/.terraform/')) {
68
- const appendIgnore = '\n# Added by deploy-stack (Terraform)\n**/.terraform/*\n**/*.tfstate\n**/*.tfstate.backup\n**/.terraform.lock.hcl\n**/secret_keys.json\n.env\n';
68
+ const appendIgnore = '\n# Added by deploy-stack (Terraform)\n.terraform/*\n*.tfstate\n*.tfstate.backup\n.terraform.lock.hcl\nsecret_keys.json\n.env\n';
69
69
  await fs.appendFile(targetGitignore, appendIgnore);
70
70
  }
71
71
  }
@@ -92,11 +92,11 @@ __pycache__/
92
92
  function getGitignoreContent(framework) {
93
93
  const baseIgnore = `
94
94
  # Infrastructure (deploy-stack)
95
- **/.terraform/*
96
- **/*.tfstate
97
- **/*.tfstate.backup
98
- **/.terraform.lock.hcl
99
- **/secret_keys.json
95
+ .terraform/*
96
+ *.tfstate
97
+ *.tfstate.backup
98
+ .terraform.lock.hcl
99
+ secret_keys.json
100
100
  .env
101
101
 
102
102
  # OS
@@ -1,4 +1,9 @@
1
- FROM python:3.11-slim
1
+ FROM python:3.12-slim
2
+
3
+ # Prevent Python from writing .pyc files and buffer stdout for cleaner logs
4
+ ENV PYTHONDONTWRITEBYTECODE=1
5
+ ENV PYTHONUNBUFFERED=1
6
+
2
7
  WORKDIR /app
3
8
 
4
9
  RUN apt-get update && apt-get install -y --no-install-recommends gcc libpq-dev && rm -rf /var/lib/apt/lists/*
@@ -10,7 +15,7 @@ RUN groupadd -g 1001 appgroup && \
10
15
  COPY requirements.txt .
11
16
 
12
17
  # Patch core python packaging tools to resolve CVEs
13
- RUN pip install --upgrade pip setuptools wheel jaraco.context msgpack
18
+ RUN pip install --upgrade pip setuptools wheel
14
19
  RUN pip install --no-cache-dir -r requirements.txt gunicorn
15
20
 
16
21
  # Copy code with explicit ownership
@@ -1,4 +1,4 @@
1
- FROM python:3.11-slim
1
+ FROM python:3.12-slim
2
2
 
3
3
  # Prevent Python from writing .pyc files and buffer stdout for cleaner logs
4
4
  ENV PYTHONDONTWRITEBYTECODE=1
@@ -11,6 +11,11 @@ RUN adduser --disabled-password --gecos '' appuser
11
11
 
12
12
  # Install dependencies without caching to keep the image size small
13
13
  COPY requirements.txt .
14
+
15
+ # Upgrade core pip tools to resolve base image CVEs
16
+ RUN pip install --upgrade pip setuptools wheel
17
+
18
+ # Install dependencies without caching to keep the image size small
14
19
  RUN pip install --no-cache-dir -r requirements.txt
15
20
 
16
21
  # Copy with ownership