Compare commits
1 Commits
8ed9d1ab47
...
9e091ee713
| Author | SHA1 | Date | |
|---|---|---|---|
| 9e091ee713 |
@ -2,8 +2,7 @@
|
|||||||
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",
|
||||||
"useradd -r -s /bin/sh appuser && chown -R appuser:appuser /app",
|
"useradd -r -s /bin/sh appuser && chown -R appuser:appuser /app"
|
||||||
"sudo -u appuser uv tool install --from /app/artifactapi/dist/*.whl artifactapi",
|
|
||||||
]
|
]
|
||||||
scripts_final = [
|
scripts_final = [
|
||||||
"dnf clean all",
|
"dnf clean all",
|
||||||
@ -13,6 +12,7 @@ docker_changes = [
|
|||||||
"EXPOSE 8000",
|
"EXPOSE 8000",
|
||||||
"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",
|
||||||
|
"uv tool install --from /app/artifactapi/dist/*.whl artifactapi",
|
||||||
"ENV PATH=\"/home/appuser/.local/bin:$PATH\"",
|
"ENV PATH=\"/home/appuser/.local/bin:$PATH\"",
|
||||||
"WORKDIR /app",
|
"WORKDIR /app",
|
||||||
"CMD [\"artifactapi\"]"
|
"CMD [\"artifactapi\"]"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user