Menghadapi
E: Package 'libmysqlclient-dev' has no installation candidate
Saya menggunakan blog ini untuk referensi: https://rehalcon.blogspot.com/2018/03/dockerize-your-django-app-for-local.html
Ini file buruh pelabuhan saya:
FROM python:2-slim
LABEL org.label-schema.name='app-dj'
RUN apt-get clean && \
apt-get update && \
apt-get install -y \
curl \
vim \
tmux \
build-essential \
libjpeg-dev \
libpq-dev \
python-dev \
libmysqlclient-dev && \
pip install -U pip 3to2
COPY requirements.txt req.txt
RUN pip install -r /req.txt
RUN mkdir -p /app
WORKDIR /app
EXPOSE 8069
CMD python /app/server.py
Jawaban:
Coba gunakan:
default-libmysqlclient-dev
di AndaDockerfile
dari pada
libmysqlclient-dev
sumber