Merged in feature/fieldExtractionDockerfile (pull request #254)

Create Dockerfile

* dockerfile

* noreadme

* Merged main into feature/fieldExtractionDockerfile


Approved-by: Alex Galarce
This commit is contained in:
Michael McGuinness
2024-11-01 13:44:32 +00:00
parent 218cafd274
commit 8860a78436
3 changed files with 27 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
# Field Extraction
+26
View File
@@ -0,0 +1,26 @@
# syntax=docker/dockerfile:1
ARG PYTHON_VERSION=3.12.7
FROM python:${PYTHON_VERSION}
# Prevents Python from writing pyc files.
ENV PYTHONDONTWRITEBYTECODE=1
# Keeps Python from buffering stdout and stderr to avoid situations where
# the application crashes without emitting any logs due to buffering.
ENV PYTHONUNBUFFERED=1
RUN --mount=type=cache,target=/root/.cache/pip \
python -m pip install poetry
WORKDIR /app
COPY pyproject.toml .
COPY poetry.lock .
RUN --mount=type=cache,target=/root/.cache/pip \
poetry install --no-dev --compile
COPY src/ src/
CMD [ "poetry", "run", "python", "src/main.py" ]
-1
View File
@@ -17,7 +17,6 @@ WORKDIR /app
COPY pyproject.toml .
COPY poetry.lock .
COPY README.md .
RUN --mount=type=cache,target=/root/.cache/pip \
poetry install --no-dev --compile