Skip to content

Commit

Permalink
Merge pull request #42 from davidjnevin/main
Browse files Browse the repository at this point in the history
update docker context
  • Loading branch information
davidjnevin authored Feb 9, 2024
2 parents 682b69f + c468ade commit 9bb8c3e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/hexagonal-chat-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Build and push Docker image
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: ../
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down
26 changes: 26 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM python:3.11


ENV PYTHONUNBUFFERED 1
ENV PYTHONDONTWRITEBYTECODE 1

COPY requirements.txt /tmp/requirements.txt
COPY requirements-dev.txt /tmp/requirements-dev.txt

RUN set -ex ;\
apt-get update -y ; \
apt-get install -y --no-install-recommends gettext ;\
pip install --no-cache-dir --upgrade pip ;\
pip install --no-cache-dir --upgrade -r /tmp/requirements-dev.txt ;\
useradd -U app_user ;\
install -d -m 0755 -o app_user -g app_user /app/static ;\
rm -rf \
/var/lib/apt/lists/*

WORKDIR /app
USER app_user:app_user

COPY --chown=app_user:app_user . .

ENTRYPOINT [ "/app/entrypoint.sh" ]
CMD ["server"]

0 comments on commit 9bb8c3e

Please sign in to comment.