Skip to content

Commit

Permalink
fix: update production dockerfile for mysqlclient 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrIw committed Dec 19, 2023
1 parent d24b438 commit 3d38f3e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .contrib/docker/Dockerfile.web.production
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# This is Dockerfile for production
ARG PYTHON_VERSION='3.10'
FROM python:${PYTHON_VERSION}-slim
RUN mkdir /code /code/production
Expand All @@ -7,13 +8,14 @@ WORKDIR /code
ENV PYTHONUNBUFFERED 1
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
default-libmysqlclient-dev \
python3-dev default-libmysqlclient-dev build-essential \
default-mysql-client libssl-dev pkg-config \
gcc \
build-essential \
git \
curl \
gettext libgettextpo-dev wait-for-it \
&& rm -rf /var/lib/apt/lists/*
nano \
htop \
gettext libgettextpo-dev wait-for-it
COPY requirements/*.txt ./requirements/
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements/production.txt
Expand Down

0 comments on commit 3d38f3e

Please sign in to comment.