Skip to content

Commit

Permalink
Security patching and image updates (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcfarland authored Jun 13, 2024
1 parent 544c735 commit d474c4f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion pctasks/core/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"orjson>=3.0.0,<4",
"strictyaml>=1.6",
"stac-validator>=3.1.0",
"opencensus-ext-azure==1.1.0",
"opencensus-ext-azure==1.1.13",
"opencensus-ext-logging==0.1.1",
"pyyaml>=5.3",
"aiohttp>=3.9",
Expand Down
12 changes: 5 additions & 7 deletions pctasks/server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
FROM python:3.9-slim
FROM mcr.microsoft.com/cbl-mariner/base/python:3.9

ARG DEVELOPMENT=FALSE
RUN tdnf install -y ca-certificates build-essential git \
&& tdnf clean all

RUN apt-get update && \
apt-get install -y build-essential git && \
rm -rf /var/lib/apt/lists/*
ARG DEVELOPMENT=FALSE

ENV CURL_CA_BUNDLE /etc/ssl/certs/ca-certificates.crt
ENV PIP_NO_CACHE_DIR=1
RUN pip install "setuptools>=65.5.1"

Expand Down Expand Up @@ -50,4 +48,4 @@ RUN if [ "${DEVELOPMENT}" = "TRUE" ]; then \
ENV APP_HOST=0.0.0.0
ENV APP_PORT=81

CMD uvicorn pctasks.server.main:app --host ${APP_HOST} --port ${APP_PORT} --log-level info
CMD uvicorn pctasks.server.main:app --host ${APP_HOST} --port ${APP_PORT} --log-level info
4 changes: 2 additions & 2 deletions pctasks/server/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
install_requires = [
"pctasks.core>=0.1.0",
"pctasks.run>=0.1.0",
"fastapi>=0.108.0",
"python-multipart==0.0.7",
"fastapi>=0.111.0",
"python-multipart==0.0.9",
]

extra_reqs = {
Expand Down

0 comments on commit d474c4f

Please sign in to comment.