-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: log4j booboo by bundling cordra-2.3.0 in docker image
- Loading branch information
Showing
5 changed files
with
64 additions
and
84 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 |
---|---|---|
|
@@ -3,4 +3,8 @@ | |
docker-compose.yml | ||
.dockerignore | ||
docker-build.sh | ||
deployment | ||
deployment | ||
.eggs | ||
.pytest_cache | ||
build | ||
dist |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,14 @@ | ||
# Best practice: Choose a stable base image and tag. | ||
FROM tiangolo/uvicorn-gunicorn:python3.8-slim | ||
FROM python:3.9 | ||
|
||
# Install security updates, and some useful packages. | ||
# | ||
# Best practices: | ||
# * Make sure apt-get doesn't run in interactive mode. | ||
# * Update system packages. | ||
# * Pre-install some useful tools. | ||
# * Minimize system package installation. | ||
RUN export DEBIAN_FRONTEND=noninteractive && \ | ||
apt-get update && \ | ||
apt-get -y upgrade && \ | ||
apt-get install -y --no-install-recommends tini procps net-tools \ | ||
build-essential git make zip && \ | ||
apt-get -y clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
WORKDIR /code | ||
|
||
COPY ./requirements/main.txt /code/requirements.txt | ||
|
||
# Install requirements | ||
# WORKDIR is /app/ FROM tiangolo/uvicorn-gunicorn:python3.8-slim | ||
COPY requirements/main.txt requirements.txt | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | ||
|
||
# Add repository code | ||
COPY . . | ||
COPY . /code | ||
RUN pip install --no-cache-dir --editable . | ||
|
||
# Best practices: Prepare for C crashes. | ||
ENV PYTHONFAULTHANDLER=1 | ||
|
||
# For development: CMD ["/start-reload.sh"] | ||
CMD ["/start.sh"] | ||
CMD ["uvicorn", "nmdc_runtime.api.main:app", "--proxy-headers", "--host", "0.0.0.0", "--port", "8000"] |
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
Oops, something went wrong.