mirror of
https://github.com/ditkrg/todo-to-issue-action.git
synced 2026-01-22 13:56:44 +00:00
Add additional, non-default, Dockerfile target which installs app into an ubuntu image. This is useful for local development and enables other operations (such as committing back to the repo) to occur within the container.
20 lines
492 B
Docker
20 lines
492 B
Docker
FROM python:3-slim AS builder
|
|
ADD *.py /app/
|
|
WORKDIR /app
|
|
|
|
RUN pip install --target=/app requests
|
|
RUN pip install --target=/app -U pip setuptools wheel
|
|
RUN pip install --target=/app ruamel.yaml
|
|
|
|
FROM ubuntu AS ubuntu-runtime
|
|
RUN apt update -y && apt install -y python3 git
|
|
COPY --from=builder /app /app
|
|
WORKDIR /app
|
|
ENV PYTHONPATH /app
|
|
CMD ["python3", "/app/main.py"]
|
|
|
|
FROM gcr.io/distroless/python3-debian12
|
|
COPY --from=builder /app /app
|
|
WORKDIR /app
|
|
ENV PYTHONPATH /app
|
|
CMD ["/app/main.py"] |