dilutewater
(Rachit Khurana)
September 8, 2021, 8:52am
1
Issues information
Your issue
Whenever I deploy it, it fails
Dockerfile content (if any)
FROM python:3.8.0-alpine
WORKDIR /usr/src/app
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
RUN apk update && apk add postgresql-dev gcc python3-dev musl-dev
RUN pip install --upgrade pip
COPY ./requirements.txt /usr/src/app/requirements.txt
RUN pip install -r requirements.txt
COPY djangofollow /usr/src/app/
COPY entrypoint.sh /usr/src/app
EXPOSE 8000
ENTRYPOINT ["./entrypoint.sh"]
pjeziorowski
(Patryk Jeziorowski)
September 8, 2021, 11:54am
2
Hello, I’m checking your issue
His dockerfile is so confusing, when we specify a WORKDIR, we use ./ in the copy commands right, but this guy is using /usr/src/app/, might be happening due to this one,
the command COPY ./requirements.txt /usr/src/app/requirements.txt could make a problem like creating /usr/src/app/ directory again in the WORKDIR.
dilutewater
(Rachit Khurana)
September 9, 2021, 10:10am
4
Ya, I don’t exactly know Docker. I just copied this dockerfile from a tutorial for deploying django to Qovery. Can you help with dockerfile ?
FROM python:3.8.0-alpine
WORKDIR /usr/src/app
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
RUN apk update && apk add postgresql-dev gcc python3-dev musl-dev
RUN pip install --upgrade pip
COPY requirements.txt ./
RUN pip install -r requirements.txt
COPY djangofollow ./
COPY entrypoint.sh ./
EXPOSE 8000
ENTRYPOINT ["./entrypoint.sh"]
Try this one
dilutewater
(Rachit Khurana)
September 9, 2021, 5:20pm
6
I tried this , but again got deployment failed.
can you share your error pls
pjeziorowski
(Patryk Jeziorowski)
September 13, 2021, 10:05am
9
Hello @dilutewater , did you manage to fix the issue / Dockerfile?