yumechi-no-kuni-proxy-worker/Containerfile
eternal-flame-AD 17cb1710a1
Add container file
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
2025-03-05 09:10:01 -06:00

27 lines
545 B
Docker

FROM rust:1-alpine AS builder
ARG EXTRA_FEATURES="url-summary url-filter"
RUN apk add --no-cache \
build-base \
ca-certificates \
libgcc \
libstdc++
WORKDIR /app
COPY . .
RUN cargo build --profile release-local --features "env-local rustls ${EXTRA_FEATURES}"
FROM alpine:3 AS runner
RUN apk add --no-cache \
ca-certificates
COPY --from=builder /app/target/release-local/yumechi-no-kuni-proxy-worker /usr/local/bin/yumechi-no-kuni-proxy-worker
EXPOSE 3000
ENTRYPOINT ["/usr/local/bin/yumechi-no-kuni-proxy-worker"]