Skip to content

Commit

Permalink
Merge pull request #206 from hltcoe/fix_docker
Browse files Browse the repository at this point in the history
fixes docker build issues
  • Loading branch information
cash committed Sep 28, 2023
2 parents 4ce7473 + acd3780 commit 3db40db
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
12 changes: 5 additions & 7 deletions Dockerfile-MySQL
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
FROM python:3.9-slim-buster
MAINTAINER Craig Harman <[email protected]>
FROM python:3.10-slim-bullseye
MAINTAINER Cash Costello <[email protected]>
LABEL Description="Image for running a Turkle interface using MySQL"

WORKDIR /opt/turkle
COPY requirements.txt /opt/turkle/requirements.txt

RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends cron default-libmysqlclient-dev build-essential; \
pip install --no-cache-dir --upgrade pip; \
pip install --no-cache-dir --upgrade -r requirements.txt; \
pip install --no-cache-dir gunicorn mysqlclient whitenoise; \
apt-get install -y --no-install-recommends cron default-libmysqlclient-dev build-essential pkg-config; \
pip install --no-cache-dir --upgrade -r requirements.txt gunicorn mysqlclient whitenoise; \
apt-get remove --purge -y build-essential; \
apt-get autoremove -y; \
rm -rf /var/lib/apt/lists/*
Expand All @@ -30,4 +28,4 @@ VOLUME /opt/turkle

EXPOSE 8080

CMD [ "/usr/local/bin/entrypoint.sh" ]
CMD [ "/usr/local/bin/entrypoint.sh" ]
8 changes: 3 additions & 5 deletions Dockerfile-sqlite
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM python:3.9-slim-buster
MAINTAINER Craig Harman <[email protected]>
FROM python:3.10-slim-bullseye
MAINTAINER Cash Costello <[email protected]>
LABEL Description="Image for running a Turkle interface using sqlite"

RUN apt-get update && apt-get install -y --no-install-recommends \
Expand All @@ -9,9 +9,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
WORKDIR /opt/turkle

COPY requirements.txt /opt/turkle/requirements.txt
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir --upgrade -r requirements.txt && \
pip install --no-cache-dir gunicorn whitenoise
RUN pip install --no-cache-dir --upgrade -r requirements.txt gunicorn whitenoise

COPY turkle /opt/turkle/turkle
COPY manage.py /opt/turkle/manage.py
Expand Down

0 comments on commit 3db40db

Please sign in to comment.