mirror of
https://github.com/nikdoof/foursquare-feeds.git
synced 2025-12-24 23:49:27 +00:00
Update packages for current CVE issues
This commit is contained in:
21
Dockerfile
Normal file
21
Dockerfile
Normal file
@@ -0,0 +1,21 @@
|
||||
# Build stage
|
||||
FROM python:3.12-slim AS builder
|
||||
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /usr/local/bin/
|
||||
WORKDIR /app
|
||||
COPY pyproject.toml uv.lock ./
|
||||
RUN uv sync --frozen --no-dev
|
||||
|
||||
# Result
|
||||
FROM python:3.12-slim
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/.venv /app/.venv
|
||||
COPY generate_feeds.py ./
|
||||
RUN mkdir -p /app/config && \
|
||||
useradd --create-home --shell /bin/bash app && \
|
||||
chown -R app:app /app
|
||||
ENV PATH="/app/.venv/bin:$PATH"
|
||||
USER app
|
||||
|
||||
# Set entrypoint with config file option
|
||||
ENTRYPOINT ["python", "generate_feeds.py", "-c", "/app/config/config.ini"]
|
||||
CMD ["--help"]
|
||||
Reference in New Issue
Block a user