Skip to content

Commit

Permalink
added missing dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ria-htkw committed Mar 30, 2024
1 parent 03ec5c3 commit edb4111
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
FROM python:3.10

WORKDIR /usr/src/app

# Update package list and install dependencies
RUN apt-get update && apt-get install -y \
wget \
tar \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /usr/src/app

# Install dependencies
COPY requirements.txt /usr/src/app/
RUN pip install --no-cache-dir -r /usr/src/app/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

# Install FOP 2.9
RUN wget https://storage.googleapis.com/server8koalixnet_backup/fop-2.9-bin.tar.gz
RUN tar -xzf fop-2.9-bin.tar.gz -C ../usr/bin
RUN rm -rf fop-2.9-bin.tar.gz
RUN tar -xzf fop-2.9-bin.tar.gz -C /usr/bin
RUN rm fop-2.9-bin.tar.gz
RUN chmod 755 /usr/bin/fop-2.9/fop/fop

# Install Java 8
RUN wget https://storage.googleapis.com/server8koalixnet_backup/jdk-8u181-linux-x64.tar.gz
RUN tar -xzf jdk-8u181-linux-x64.tar.gz -C ../usr/bin
RUN rm -rf jdk-8u181-linux-x64.tar.gz

RUN tar -xzf jdk-8u181-linux-x64.tar.gz -C /usr/bin
RUN rm jdk-8u181-linux-x64.tar.gz

# Port to expose
EXPOSE 8000
Expand Down

0 comments on commit edb4111

Please sign in to comment.