FROM debian:bullseye

EXPOSE 8000

WORKDIR /app

COPY src ./src

RUN apt update -y && apt install -y \
  python3-tz \
  python3-flask \
  python3-flaskext.wtf \
  python3-requests \
  python3-wtforms \
  python3-bleach \
  python3-urllib3 \
  && apt clean \
  && rm -rf /var/cache/apt

ENTRYPOINT ["/app/src/run.sh"]

LABEL maintainer="searxng <${GIT_URL}>" \
		description="Weather Application" \
		version="0.1" \
		org.label-schema.schema-version="1.0" \
		org.label-schema.name="pywttr" \
		org.label-schema.version="0.1" \
		org.label-schema.url="https://gitea.chudnick.com/sam/pywttr" \
		org.opencontainers.image.title="pywttr" \
		org.opencontainers.image.version="0.1" \
		org.opencontainers.image.url="https://gitea.chudnick.com/sam/pywttr" \
		org.opencontainers.image.revision="0.1" \
		org.opencontainers.image.source="https://gitea.chudnick.com/sam/pywttr" \
		org.opencontainers.image.documentation="https://gitea.chudnick.com/sam/pywttr" \