Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 3 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
# FROM python:3.9
# FROM node:14
FROM openjdk:8-jdk-alpine

RUN apk --no-cache add git
RUN wget https://archive.apache.org/dist/jmeter/binaries/apache-jmeter-5.4.1.tgz && \
tar -xzf apache-jmeter-5.4.1.tgz -C /opt && \
rm apache-jmeter-5.4.1.tgz

ENV PATH="/opt/apache-jmeter-5.4.1/bin:${PATH}"

# for local environment
WORKDIR /scraper_Api

COPY . .

RUN pip install --no-cache-dir -r requirements.txt

EXPOSE 8000

CMD sh -c "python manage.py migrate && python manage.py runserver 0.0.0.0:8000"


ENV PATH="/opt/apache-jmeter-5.4.1/bin:${PATH}"
6 changes: 4 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ idna==3.6
incremental==24.7.2
msgpack==1.1.0
packaging==24.0
pillow==11.1.0
psycopg2-binary==2.9.10
pyasn1==0.6.1
pyasn1_modules==0.4.1
pycparser==2.22
Expand All @@ -35,6 +37,7 @@ pytz==2023.3.post1
redis==5.2.1
requests==2.31.0
service-identity==24.2.0
setuptools==80.9.0
six==1.16.0
sqlparse==0.4.4
tomli==2.2.1
Expand All @@ -43,5 +46,4 @@ txaio==23.1.1
typing_extensions==4.9.0
tzlocal==5.2
urllib3==2.1.0
zope.interface==7.2
Pillow==11.1.0
zope.interface==7.2