Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fahad-cb authored Jul 28, 2024
1 parent c0d16a1 commit 1161861
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM python:3.9

# ---------- install ----------
COPY ./supplyme_core /opt/supplyme_core/supplyme_core
COPY ./README.md /opt/supplyme_core/README.md
COPY ./MANIFEST.in /opt/supplyme_core/MANIFEST.in
COPY ./setup.cfg /opt/supplyme_core/setup.cfg
COPY ./setup.py /opt/supplyme_core/setup.py

WORKDIR /opt/supplyme_core/
RUN pip install flake8
RUN apt-get update
RUN apt install gdal-bin python3-gdal libgdal-dev -y
RUN apt install wkhtmltopdf -y

RUN apt install unzip -y
RUN apt-get install binutils -y
RUN pip install GDAL==$(gdal-config --version | awk -F'[.]' '{print $1"."$2}')
RUN python setup.py sdist && pip install dist/*

VOLUME /opt/init
COPY scripts/staging/docker-entrypoint.sh /usr/local/bin/
ADD supplyme_core /opt/supplyme_core
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
CMD ['python3']

0 comments on commit 1161861

Please sign in to comment.