Skip to content

Commit

Permalink
Improve Dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
mjanez authored Feb 8, 2024
1 parent bc6b054 commit dc9b89b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions ckan-mqa/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ ENV DEV_MODE=False
ENV TIMEOUT=20

RUN apt-get -q -y update && \
apt-get install -y wget && \
DEBIAN_FRONTEND=noninteractive apt-get -yq install gettext-base && \
wget -O /wait-for https://raw.githubusercontent.com/eficode/wait-for/v2.2.3/wait-for && \
apt-get install -y --no-install-recommends wget=1.21.3-1 gettext-base=0.21-12 && \
rm -rf /var/lib/apt/lists/* && \
wget --progress=dot:giga -O /wait-for https://raw.githubusercontent.com/eficode/wait-for/v2.2.3/wait-for && \
chmod +x /wait-for && \
python3 -m pip install pdm
python3 -m pip install --no-cache-dir pdm==2.12.3

WORKDIR ${APP_DIR}
COPY pyproject.toml pdm.lock ./
Expand Down
8 changes: 4 additions & 4 deletions ckan-mqa/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ ENV DEV_MODE=True
ENV TIMEOUT=10

RUN apt-get -q -y update && \
apt-get install -y wget procps && \
DEBIAN_FRONTEND=noninteractive apt-get -yq install gettext-base && \
wget -O /wait-for https://raw.githubusercontent.com/eficode/wait-for/v2.2.3/wait-for && \
apt-get install -y --no-install-recommends wget=1.21.3-1 procps=2:4.0.2-3 gettext-base=0.21-12 && \
rm -rf /var/lib/apt/lists/* && \
wget --progress=dot:giga -O /wait-for https://raw.githubusercontent.com/eficode/wait-for/v2.2.3/wait-for && \
chmod +x /wait-for && \
python3 -m pip install pdm debugpy
python3 -m pip install --no-cache-dir pdm==2.12.3 debugpy==1.8.0

WORKDIR ${APP_DIR}
COPY pyproject.toml pdm.lock ./
Expand Down

0 comments on commit dc9b89b

Please sign in to comment.