Skip to content

Commit a6a6123

Browse files
Merge pull request #34 from Backendly/payment
Add Docker configuration and update requirements for job execution
2 parents 122b87d + 520308c commit a6a6123

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

.dockerignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
__pycache__/
2+
.env
3+
.commercecore-payment-service/
4+
.vscode
5+
.env
6+
node_modules
7+
.payment-service

dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ FROM python:3.9-slim
22

33
WORKDIR /app
44

5-
# Copy the Pipfile and Pipfile.lock first to cache dependencies
5+
# Copy the requirements.txt file
66
COPY requirements.txt /app/
77

8-
# Install pipenv
8+
# Install the dependencies
99
RUN pip install -r requirements.txt
1010

1111
# Copy the rest of the application files
1212
COPY . /app
1313

1414
EXPOSE 8000
1515

16-
# Run FastAPI using Uvicorn
17-
CMD ["pipenv", "run", "uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "8000"]
16+
# Execute the execute_jobs.py script
17+
CMD ["python", "execute_jobs.py"]

requirements.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ markdown-it-py==3.0.0
4545
MarkupSafe==2.1.5
4646
mdurl==0.1.2
4747
nanoid==2.0.0
48-
numpy==2.1.1
4948
outcome==1.3.0.post0
5049
packaging==24.1
5150
pandas==2.2.3
@@ -70,9 +69,6 @@ Redis-Sentinel-Url==1.0.1
7069
requests==2.32.3
7170
rich==13.8.0
7271
rq==1.16.2
73-
rq-dashboard==0.8.0.2
74-
rq-dashboard-fast==0.5.9
75-
rq-scheduler==0.13.1
7672
sentry-sdk==2.15.0
7773
shellingham==1.5.4
7874
six==1.16.0

0 commit comments

Comments
 (0)