Skip to content

Commit

Permalink
fix dockerfile.prod for backend
Browse files Browse the repository at this point in the history
  • Loading branch information
robinpdev committed Mar 2, 2024
1 parent 91ef19e commit 0187083
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions backend/Dockerfile.prod → Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ ENV PYTHONUNBUFFERED 1
RUN apk update \
&& apk add postgresql-dev gcc python3-dev musl-dev

# lint
# make sure pip is updated
RUN pip install --upgrade pip
COPY . .
#COPY backend/ .

# install dependencies
COPY requirements.txt .
COPY backend/requirements.txt .
RUN pip wheel --no-cache-dir --no-deps --wheel-dir /usr/src/app/wheels -r requirements.txt


Expand Down Expand Up @@ -53,12 +53,12 @@ COPY --from=builder /usr/src/app/requirements.txt .
RUN pip install --no-cache /wheels/*

# copy entrypoint.prod.sh
COPY ./entrypoint.prod.sh .
COPY ./backend/entrypoint.prod.sh .
RUN sed -i 's/\r$//g' $APP_HOME/entrypoint.prod.sh
RUN chmod +x $APP_HOME/entrypoint.prod.sh

# copy project
COPY . $APP_HOME
COPY ./backend $APP_HOME

RUN chmod +x $APP_HOME/entrypoint.prod.sh

Expand Down

0 comments on commit 0187083

Please sign in to comment.