Skip to content

Commit

Permalink
Add Docker image file for CLI (#168)
Browse files Browse the repository at this point in the history
* add docker

* add ignore file

* refac(docker): Update `Dockerfile` to remove multi-stage

* chore(requirements): Update to remove `tensorflow`

* Fix comment formatting for Docker file

---------

Co-authored-by: Andrew Tavis McAllister <[email protected]>
Co-authored-by: Will Yoshida <[email protected]>
Co-authored-by: wkyoshida <[email protected]>
  • Loading branch information
4 people authored Nov 19, 2024
1 parent e5cb5dd commit 48de65a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
__pycache__/
*.pyc
*.pyo
*.pyd
.venv/
venv/
.git/
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Use an official Python runtime as a base image.
FROM python:slim

# Set the working directory inside the container.
WORKDIR /app

# Install system dependencies.
RUN apt-get update && apt-get install -y \
build-essential \
pkg-config \
libicu-dev \
&& rm -rf /var/lib/apt/lists/*

COPY requirements.txt /app/
RUN pip install --no-cache-dir -r requirements.txt

COPY . /app

# Set the PYTHONPATH environment variable to include the src directory.
ENV PYTHONPATH=/app/src

# Set the entry point to the main CLI script.
ENTRYPOINT ["python", "src/scribe_data/cli/main.py"]

0 comments on commit 48de65a

Please sign in to comment.