Skip to content

Commit

Permalink
Even more WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
squeaky-pl committed Feb 26, 2024
1 parent 5e64a42 commit 8b6be7a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Docker system info
run: docker info

- name: Set up Docker context for Buildx
id: buildx-context
run: |
Expand Down
11 changes: 4 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,19 @@ RUN mkdir /etc/inboxapp && \
mkdir /opt/app && \
chown sync-engine:sync-engine /opt/app && \
mkdir /opt/venv && \
chown sync-engine:sync-engine /opt/venv && \
mkdir -p /home/sync-engine/.cache/pip && \
chown sync-engine:sync-engine /home/sync-engine/.cache/pip
chown sync-engine:sync-engine /opt/venv

WORKDIR /opt/app
COPY --chown=sync-engine:sync-engine requirements/ /opt/app/requirements
RUN --mount=type=cache,target=/root/.cache/pip \
RUN --mount=type=cache,target=/root/.cache/pip,id=sync-engine-pip-cache \
python3 -m pip install pip==23.3.1 virtualenv==20.17.1 && \
python3 -m virtualenv /opt/venv && \
/opt/venv/bin/python3 -m pip install setuptools==67.4.0 && \
/opt/venv/bin/python3 -m pip install --no-deps -r requirements/prod.txt -r requirements/test.txt && \
/opt/venv/bin/python3 -m pip check && \
/usr/bin/find ~/.cache/pip -name "*.whl"
/usr/bin/find ~/.cache/pip -name "*.whl"
RUN ln -s /opt/app/bin/wait-for-it.sh /opt/venv/bin/


USER sync-engine


Expand All @@ -74,7 +71,7 @@ COPY --chown=sync-engine:sync-engine ./ ./
# /opt/venv/bin/python3 -m pip install --no-deps -r requirements/prod.txt -r requirements/test.txt && \
# /opt/venv/bin/python3 -m pip install -e . && \
# /opt/venv/bin/python3 -m pip check
RUN /usr/bin/find ~/.cache/pip -name "*.whl"



ENV \
Expand Down

0 comments on commit 8b6be7a

Please sign in to comment.