Skip to content

Commit

Permalink
feat: update Dockerfile.prod
Browse files Browse the repository at this point in the history
  • Loading branch information
manjurulhoque committed Feb 22, 2025
1 parent 18836c1 commit 872cb51
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,25 @@ ENV PYTHONUNBUFFERED 1

COPY requirements.txt /usr/src/app

# Install system dependencies using apk
RUN apk update \
&& apk add --no-cache nano

RUN python -m pip install --upgrade pip
RUN pip install -r requirements.txt

COPY . /usr/src/app

RUN cp .env.dev.sample .env

RUN apt-get update
RUN apt-get -y install nano

#EXPOSE 8000

RUN chmod +x entrypoint.prod.sh

ENV APP_HOME=/usr/src/app
RUN mkdir $APP_HOME/staticfiles
RUN mkdir $APP_HOME/mediafiles

RUN mkdir -p staticfiles
RUN mkdir -p mediafiles
# No need to create directories twice
RUN mkdir -p $APP_HOME/staticfiles \
&& mkdir -p $APP_HOME/mediafiles

RUN echo "Running from production dockerfile"

Expand Down

0 comments on commit 872cb51

Please sign in to comment.