forked from github-starred/komodo
* add close alert threshold to prevent Ok - Warning back and forth * remove part about repo being deleted, no longer behavior * resource sync share general common * remove this changelog. use releases * remove changelog from readme * write commit file clean up path * docs: supports any git provider repo * fix docs: authorization * multiline command supports escaped newlines * move webhook to build config advanced * parser comments with escaped newline * improve parser * save use Enter. escape monaco using escape * improve logic when deployment / stack action buttons shown * used_mem = total - available * Fix unrecognized path have 404 * webhooks will 404 if misconfigured * move update logger / alerter * delete migrator * update examples * publish typescript client komodo_client
45 lines
1.3 KiB
Docker
45 lines
1.3 KiB
Docker
## This one produces smaller images,
|
|
## but alpine uses `musl` instead of `glibc`.
|
|
## This makes it take longer / more resources to build,
|
|
## and may negatively affect runtime performance.
|
|
|
|
# Build Core
|
|
FROM rust:1.81.0-alpine AS core-builder
|
|
WORKDIR /builder
|
|
RUN apk update && apk --no-cache add musl-dev openssl-dev openssl-libs-static
|
|
COPY . .
|
|
RUN cargo build -p komodo_core --release
|
|
|
|
# Build Frontend
|
|
FROM node:20.12-alpine AS frontend-builder
|
|
WORKDIR /builder
|
|
COPY ./frontend ./frontend
|
|
COPY ./client/core/ts ./client
|
|
RUN cd client && yarn && yarn build && yarn link
|
|
RUN cd frontend && yarn link komodo_client && yarn && yarn build
|
|
|
|
# Final Image
|
|
FROM alpine:3.20
|
|
|
|
# Install Deps
|
|
RUN apk update && apk add --no-cache --virtual .build-deps \
|
|
openssl ca-certificates git git-lfs
|
|
|
|
# Setup an application directory
|
|
WORKDIR /app
|
|
|
|
# Copy
|
|
COPY ./config/core.config.toml /config/config.toml
|
|
COPY --from=core-builder /builder/target/release/core /app
|
|
COPY --from=frontend-builder /builder/frontend/dist /app/frontend
|
|
|
|
# Hint at the port
|
|
EXPOSE 9120
|
|
|
|
# Label for Ghcr
|
|
LABEL org.opencontainers.image.source=https://github.com/mbecker20/komodo
|
|
LABEL org.opencontainers.image.description="Komodo Core"
|
|
LABEL org.opencontainers.image.licenses=GPL-3.0
|
|
|
|
# Using ENTRYPOINT allows cli args to be passed, eg using "command" in docker compose.
|
|
ENTRYPOINT [ "/app/core" ] |