Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
FROM python:3.10
RUN apt-get update && apt-get install -y libxml2-dev libxmlsec1-dev libxmlsec1-openssl

RUN apt-get update && apt-get install -y libxml2-dev libxmlsec1-dev libxmlsec1-openssl

WORKDIR /zango
# ref: https://docs.docker.com/build/cache/
COPY backend/requirements/base.txt /backend/requirements/base.txt
RUN pip install -r /backend/requirements/base.txt
COPY backend/requirements/base.txt /zango/backend/requirements/base.txt

RUN --mount=type=cache,target=/root/.cache/pip \
pip install -r /zango/backend/requirements/base.txt

COPY . /zango/
RUN cd backend && pip install .

RUN --mount=type=cache,target=/root/.cache/pip \
cd backend && pip install .