-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
34 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,16 @@ | ||
FROM python:3.9 | ||
|
||
# Install kubectl | ||
ARG KUBECTL_VERSION=v1.30.1 | ||
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl \ | ||
&& chmod +x kubectl \ | ||
&& mv kubectl /usr/local/bin/ | ||
RUN kubectl version --client | ||
WORKDIR /app | ||
COPY ./requirements.txt ./requirements.txt | ||
RUN pip install --no-cache-dir --upgrade -r ./requirements.txt | ||
COPY *.sh . | ||
COPY *.py . | ||
|
||
# CMD ["bash", "/app/start.sh"] | ||
|
||
|
||
# RUN apk update && apk add --no-cache \ | ||
# proj \ | ||
# proj-dev \ | ||
# gdal \ | ||
# gdal-dev \ | ||
# geos \ | ||
# geos-dev \ | ||
# python3-dev \ | ||
# py3-pip \ | ||
# build-base \ | ||
# proj-util \ | ||
# git | ||
|
||
# # Ensure PROJ_DIR and PATH are set | ||
# ENV PROJ_DIR=/usr | ||
# ENV PATH="/usr/share/proj:${PATH}" | ||
COPY ./requirements.txt . | ||
RUN pip install --no-cache-dir --upgrade -r requirements.txt | ||
|
||
# # Upgrade pip | ||
# RUN python3 -m pip install --upgrade pip | ||
|
||
# WORKDIR /app | ||
|
||
# # Install Python dependencies | ||
# COPY requirements.txt . | ||
# RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
# COPY *.py . | ||
|
||
# ENTRYPOINT ["python purge.py"] | ||
COPY *.sh . | ||
COPY *.py . | ||
CMD ["python", "sqs_processor.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters