forked from github-starred/komodo
* consolidate deserializers * key value list doc * use string list deserializers for all entity Vec<String> * add additional env files support * plumbing for Action resource * js client readme indentation * regen lock * add action UI * action backend * start on action frontend * update lock * get up to speed * get action started * clean up default action file * seems to work * toml export include action * action works * action works part 2 * bump rust version to 1.82.0 * copy deno bin from bin image * action use local dir * update not having changes doesn't return error * format with prettier * support yaml formatting with prettier * variable no change is Ok
35 lines
1.0 KiB
Docker
35 lines
1.0 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 Periphery
|
|
FROM rust:1.82.0-alpine AS builder
|
|
WORKDIR /builder
|
|
COPY . .
|
|
RUN apk update && apk --no-cache add musl-dev openssl-dev openssl-libs-static
|
|
RUN cargo build -p komodo_periphery --release
|
|
|
|
# Final Image
|
|
FROM alpine:3.20
|
|
|
|
# Install Deps
|
|
RUN apk update && apk add --no-cache --virtual .build-deps \
|
|
docker-cli docker-cli-compose openssl ca-certificates git git-lfs bash
|
|
|
|
# Setup an application directory
|
|
WORKDIR /app
|
|
|
|
# Copy
|
|
COPY --from=builder /builder/target/release/periphery /app
|
|
|
|
# Hint at the port
|
|
EXPOSE 8120
|
|
|
|
# Label for Ghcr
|
|
LABEL org.opencontainers.image.source=https://github.com/mbecker20/komodo
|
|
LABEL org.opencontainers.image.description="Komodo Periphery"
|
|
LABEL org.opencontainers.image.licenses=GPL-3.0
|
|
|
|
# Using ENTRYPOINT allows cli args to be passed, eg using "command" in docker compose.
|
|
ENTRYPOINT [ "/app/periphery" ] |