19 lines
390 B
Docker
19 lines
390 B
Docker
FROM alpine:3.23
|
|
|
|
RUN apk add --no-cache python3 py3-pip
|
|
RUN pip3 install --break-system-packages flask flask-httpauth gunicorn requests jmespath
|
|
# Clean up apk cache
|
|
RUN rm -rf /var/cache/apk/*
|
|
|
|
WORKDIR /app
|
|
COPY app.py /app/app.py
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
ENV LISTEN_ADDRESS=0.0.0.0
|
|
ENV LISTEN_PORT=8080
|
|
|
|
EXPOSE 8080
|
|
|
|
ENTRYPOINT [ "/entrypoint.sh" ]
|