-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (23 loc) · 917 Bytes
/
Copy pathDockerfile
File metadata and controls
29 lines (23 loc) · 917 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# PaperHero CLI Docker image
# Used as a base image for automations and CI/CD pipelines.
#
# Usage:
# docker run --rm ghcr.io/blaumedia/paperhero-cli paperhero version
# docker run --rm -e PAPERHERO_PASSWORD=secret ghcr.io/blaumedia/paperhero-cli \
# paperhero login --customer-id myco --email user@example.com --password "$PAPERHERO_PASSWORD"
#
# As a base image:
# FROM ghcr.io/blaumedia/paperhero-cli:latest
# COPY my-automation.sh /usr/local/bin/
# CMD ["my-automation.sh"]
FROM alpine:3.21
# Install CA certificates for HTTPS API calls and common automation tools
RUN apk add --no-cache ca-certificates jq curl bash
# Copy the pre-built binary (injected by CI at build time)
COPY paperhero /usr/local/bin/paperhero
# Ensure the binary is executable
RUN chmod +x /usr/local/bin/paperhero
# Default session directory
RUN mkdir -p /root/.config/paperhero
ENTRYPOINT ["paperhero"]
CMD ["--help"]