Skip to content

Commit

Permalink
ci/cd: add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
oedokumaci committed Jan 5, 2024
1 parent 5168a21 commit 406876a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Use an official Python runtime as a parent image
FROM python:3.11

# Set the working directory in the container
WORKDIR /usr/src/app

# Copy the current directory contents into the container
COPY . /usr/src/app

# Install PDM (Python Dependency Manager)
RUN pip install pdm

# Install dependencies and pre-commit hooks
RUN make setup

# Command to run tests
CMD ["pdm", "run", "test"]

0 comments on commit 406876a

Please sign in to comment.