Files
ascii-art-app/Dockerfile
T
rmancinasandClaude Opus 5.5 8dc6a973ce
Build and Deploy / Build Image (push) Successful in 32s
Build and Deploy / Deploy (push) Successful in 6s
feat: /version endpoint; fix deploy action inputs
- Bake the commit SHA into the image (GIT_SHA build arg) and serve it at
  /version, so a deploy can be verified end to end. This repo is the
  dockerloid deploy test service.
- cssnr/portainer-stack-deploy-action@v1 reads `endpoint` and `pull`;
  `endpoint_id` / `pull_image` were silently ignored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 15:09:37 -07:00

22 lines
360 B
Docker

FROM python:3.11-slim
WORKDIR /app
# Install Flask
RUN pip install --no-cache-dir flask
# Copy the app
COPY app.py ascii_engine.py ./
COPY templates ./templates
COPY static ./static
# Build provenance, served at /version so deploys can be verified
ARG GIT_SHA=unknown
ENV GIT_SHA=$GIT_SHA
# Expose port
EXPOSE 5000
# Run the app
CMD ["python", "app.py"]