Skip to content

Commit

Permalink
Add full copy of directory in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoom-Developer committed Nov 12, 2024
1 parent 6f5086f commit c4d5709
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
FROM python:3.12-slim

WORKDIR /app
COPY ./requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r /app/requirements.txt
COPY ./src /app/src
COPY . ./app

COPY ./alembic.ini /app/alembic.ini
COPY ./entry.sh /app/entry.sh
RUN chmod +x /app/entry.sh
RUN pip install --no-cache-dir -r /app/requirements.txt

RUN apt-get -y update; apt-get -y install curl

ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1

RUN chmod +x /app/entry.sh
ENTRYPOINT [ "sh", "entry.sh" ]

0 comments on commit c4d5709

Please sign in to comment.