Skip to content

Commit

Permalink
Merge pull request #4957 from freelawproject/fix-deployment-action
Browse files Browse the repository at this point in the history
chore(Dockerfile): Include Tailwind asset compilation in Docker build
  • Loading branch information
mlissner authored Jan 23, 2025
2 parents 8133a33 + 7d8303a commit 5a2c57a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ jobs:
}'
- name: Wait for Temporary Pod to Start
run: kubectl wait pods -n ${{ env.EKS_NAMESPACE }} --for condition=Ready --timeout=90s temp-pod-${{ steps.vars.outputs.sha_short }}
- name: Build tailwind assets
run: kubectl exec -n ${{ env.EKS_NAMESPACE }} temp-pod-${{ steps.vars.outputs.sha_short }} -- bash -c "npm install --prefix ./cl --no-input && npm run build --prefix ./cl --no-input"
- name: Collect Static Assets
id: collectStatic
run: |
Expand Down
3 changes: 2 additions & 1 deletion docker/django/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ COPY . /opt/courtlistener
WORKDIR /opt/courtlistener/cl
RUN npm install
RUN npx webpack --mode=production --no-devtool
RUN npm run build --no-input

WORKDIR /opt

Expand All @@ -81,4 +82,4 @@ RUN chmod +x /opt/courtlistener/docker/django/docker-entrypoint.sh
RUN chown www-data:www-data /opt/courtlistener/docker/django/docker-entrypoint.sh

USER www-data
ENTRYPOINT ["/bin/sh", "/opt/courtlistener/docker/django/docker-entrypoint.sh"]
ENTRYPOINT ["/bin/sh", "/opt/courtlistener/docker/django/docker-entrypoint.sh"]

0 comments on commit 5a2c57a

Please sign in to comment.