From 8d001695213f69f6a9adc792db2c531ea22d8481 Mon Sep 17 00:00:00 2001 From: IBM Capstone <195570009+Moon-Knight13@users.noreply.github.com> Date: Sat, 20 Jun 2026 06:22:54 -0400 Subject: [PATCH] Added Docker Support --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4a2f69c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM python:3.9-slim + +#setup file struc +WORKDIR /app +COPY requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt + +# copy service folder +COPY service/ ./service/ + +# Switch to a non-root user +RUN useradd --uid 1000 theia && chown -R theia /app +USER theia + +# Run the service +EXPOSE 8080 +CMD ["gunicorn", "--bind=0.0.0.0:8080", "--log-level=info", "service:app"]