From c811af252a46010dccae5c5778d64c45cf47d332 Mon Sep 17 00:00:00 2001 From: Sam Chudnick Date: Sat, 10 Jun 2023 07:30:48 -0400 Subject: Added docker components and README. --- Dockerfile | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e1f4b9a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,32 @@ +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 \ + && 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" \ -- cgit v1.2.3