Fixing Dockerfile - Debian Jessie no longer available (#301)

* Fixing Dockerfile - Debian Jessie no longer available

* Additional fixes and optimizations, required going into container
This commit is contained in:
elia
2024-03-09 11:31:14 -05:00
committed by GitHub
parent c60be2981a
commit 3267316a38

View File

@@ -30,22 +30,33 @@
# One good pattern is to write this out to the /srv/ tree, for example, # One good pattern is to write this out to the /srv/ tree, for example,
# /srv/pault.ag/congress/ or /srv/io.unitedstates/congress/ # /srv/pault.ag/congress/ or /srv/io.unitedstates/congress/
FROM debian:jessie FROM debian:bullseye
MAINTAINER Paul R. Tagliamonte <paultag@sunlightfoundation.com> LABEL maintainer="Paul R. Tagliamonte <paultag@sunlightfoundation.com>"
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
git python3-dev libxml2-dev libxslt1-dev libz-dev python3-pip wget git \
python3 \
python3-dev \
python3-pip \
libxml2-dev \
libxslt1-dev \
libz-dev \
wget \
&& rm -rf /var/lib/apt/lists/*
RUN pip3 install --upgrade pip setuptools wheel
RUN mkdir -p /opt/theunitedstates.io/ RUN mkdir -p /opt/theunitedstates.io/
ADD . /opt/theunitedstates.io/congress/ ADD . /opt/theunitedstates.io/congress/
WORKDIR /opt/theunitedstates.io/congress/ WORKDIR /opt/theunitedstates.io/congress/
RUN pip install . RUN pip3 install .
RUN echo "/opt/theunitedstates.io/congress/" > /usr/lib/python3.6/dist-packages/congress.pth RUN ln -s /usr/bin/python3 /usr/bin/python
RUN echo "/opt/theunitedstates.io/congress/" > /usr/local/lib/python3.9/dist-packages/congress.pth
RUN mkdir -p /congress RUN mkdir -p /congress
WORKDIR /congress WORKDIR /congress
CMD [] CMD ["/bin/bash"]
ENTRYPOINT ["/opt/theunitedstates.io/congress/congress/run.py"]