Compare commits
1 Commits
1e155300b4
...
053d8fa1d9
| Author | SHA1 | Date | |
|---|---|---|---|
| 053d8fa1d9 |
@ -9,7 +9,7 @@ packages = [
|
|||||||
"incus-client",
|
"incus-client",
|
||||||
"incus-tools",
|
"incus-tools",
|
||||||
"nodejs",
|
"nodejs",
|
||||||
"opentofu"
|
"opentofu",
|
||||||
"packer",
|
"packer",
|
||||||
"terragrunt",
|
"terragrunt",
|
||||||
"unzip",
|
"unzip",
|
||||||
|
|||||||
@ -2,7 +2,8 @@
|
|||||||
docker_source = "git.unkin.net/unkin/almalinux9-base:latest"
|
docker_source = "git.unkin.net/unkin/almalinux9-base:latest"
|
||||||
scripts_post_packages = [
|
scripts_post_packages = [
|
||||||
"git clone https://git.unkin.net/unkin/artifactapi.git /app/artifactapi && uv build --wheel /app/artifactapi",
|
"git clone https://git.unkin.net/unkin/artifactapi.git /app/artifactapi && uv build --wheel /app/artifactapi",
|
||||||
"adduser -D -s /bin/sh appuser && chown -R appuser:appuser /app"
|
"uv pip install /app/artifactapi/dist/*.whl",
|
||||||
|
"useradd -r -s /bin/sh appuser && chown -R appuser:appuser /app"
|
||||||
]
|
]
|
||||||
scripts_final = [
|
scripts_final = [
|
||||||
"dnf clean all",
|
"dnf clean all",
|
||||||
@ -13,6 +14,5 @@ docker_changes = [
|
|||||||
"HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 CMD curl -f http://localhost:8000/health || exit 1",
|
"HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 CMD curl -f http://localhost:8000/health || exit 1",
|
||||||
"USER appuser",
|
"USER appuser",
|
||||||
"WORKDIR /app",
|
"WORKDIR /app",
|
||||||
"RUN uv pip install /app/artifactapi/dist/*.whl",
|
|
||||||
"CMD [\"uv\", \"run\", \"artifactapi\"]"
|
"CMD [\"uv\", \"run\", \"artifactapi\"]"
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user