-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (15 loc) · 743 Bytes
/
Dockerfile
File metadata and controls
18 lines (15 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM rust:bookworm AS builder
WORKDIR /usr/src/factorion-bot
COPY . .
RUN cd factorion-bot-reddit && cargo install --path .
FROM debian:bookworm-slim
ARG VERSION=latest
LABEL org.opencontainers.image.version="${VERSION}"
LABEL org.opencontainers.image.title="factorion-bot"
LABEL org.opencontainers.image.description="A Reddit bot that calculates factorials"
LABEL org.opencontainers.image.url="https://github.com/tolik518/factorion-bot"
LABEL org.opencontainers.image.source="https://github.com/tolik518/factorion-bot"
LABEL org.opencontainers.image.licenses="MIT"
RUN apt-get update && apt install -y openssl ca-certificates curl
WORKDIR /usr/factorion
COPY --from=builder /usr/local/cargo/bin/factorion-bot-reddit /usr/bin/factorion-bot