Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
s-heppner committed Sep 11, 2024
1 parent 67b8370 commit 4584edc
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Use the official Alpine Linux as the base image
FROM python:3.9-alpine

# Set the working directory in the container
WORKDIR /app

# Copy the package files to the working directory
COPY . .

# Install system dependencies
RUN apk update && apk add --no-cache git

# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt

# Set PYTHONPATH to the app directory
ENV PYTHONPATH=/app

# Expose the port that FastAPI will run on
EXPOSE 8125

# Command to run the FastAPI server
CMD ["python", "resolver_modules/service.py"]

0 comments on commit 4584edc

Please sign in to comment.