-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated dev 4 9 24 (#36) * update reply show only changed data and logtime deco func add * consist of update response change gghnbackgroundtask and rean login once change * removed some comments and rectified set reminder resp msg * changed filename to logtime * changed date format to resolve issue of when date (#37) * Update Dockerfile * Update requirements.txt * added search reply and noted user id in json (#44) --------- Co-authored-by: rf-opssupport <84499879+rf-opssupport@users.noreply.github.com>
- Loading branch information
1 parent
8a062c3
commit c1163d3
Showing
7 changed files
with
326 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,54 @@ | ||
FROM python:3.10 | ||
# FROM python:3.10 | ||
# WORKDIR /app | ||
# RUN python -m venv venv | ||
# RUN . venv/bin/activate | ||
# RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 ghostscript -y | ||
# RUN apt-get install -y awscli dos2unix | ||
# RUN pip install --upgrade pip | ||
# RUN pip install setuptools wheel | ||
# COPY requirements.txt /app/ | ||
# RUN pip install --no-cache-dir -r requirements.txt | ||
# COPY . /app | ||
# # RUN aws s3 cp s3://duploservices-dev-configs-new-167414264568/document-processor/GMU_admin.json /app/assets | ||
# EXPOSE 3000 | ||
# #CMD ["python", "main.py"] | ||
# COPY entrypoint.sh /app/entrypoint.sh | ||
# RUN dos2unix /app/entrypoint.sh | ||
# RUN chmod +x /app/entrypoint.sh | ||
# ENTRYPOINT ["/bin/bash", "-c", "/app/entrypoint.sh"] | ||
|
||
FROM python:3.12-slim-bookworm | ||
|
||
# Set the working directory | ||
WORKDIR /app | ||
RUN python -m venv venv | ||
RUN . venv/bin/activate | ||
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 ghostscript -y | ||
RUN apt-get install -y awscli dos2unix | ||
RUN pip install --upgrade pip | ||
RUN pip install setuptools wheel | ||
|
||
# Install necessary tools for the build process and dependencies | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
ffmpeg \ | ||
libstdc++6 \ | ||
libx11-6 \ | ||
ghostscript \ | ||
awscli \ | ||
dos2unix \ | ||
libexpat1 && \ | ||
apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
# Upgrade pip and install Python packages | ||
RUN pip install --upgrade pip setuptools wheel | ||
|
||
# Copy requirements and install them | ||
COPY requirements.txt /app/ | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
RUN pip install --no-cache-dir --use-deprecated=legacy-resolver -r requirements.txt | ||
|
||
# Copy the rest of the application code | ||
COPY . /app | ||
# RUN aws s3 cp s3://duploservices-dev-configs-new-167414264568/document-processor/GMU_admin.json /app/assets | ||
|
||
# Convert the entrypoint script to Unix format and make it executable | ||
RUN dos2unix /app/entrypoint.sh && \ | ||
chmod +x /app/entrypoint.sh | ||
|
||
# Expose port | ||
EXPOSE 3000 | ||
#CMD ["python", "main.py"] | ||
COPY entrypoint.sh /app/entrypoint.sh | ||
RUN dos2unix /app/entrypoint.sh | ||
RUN chmod +x /app/entrypoint.sh | ||
|
||
# Set the entrypoint | ||
ENTRYPOINT ["/bin/bash", "-c", "/app/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.