Skip to content

Commit

Permalink
🐛 Build docker image from top-level directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jemrobinson committed Oct 2, 2023
1 parent c8a7b34 commit 8135427
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions docker/Dockerfile → Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ RUN apk add --update --no-cache \
gcc libc-dev libffi-dev

# Upload and install Python package and dependencies
COPY ../apricot apricot
COPY ../pyproject.toml .
COPY ../README.md .
COPY ./apricot apricot
COPY ./pyproject.toml .
COPY ./README.md .
RUN pip install --upgrade hatch pip
# Initialise environment with hatch
RUN hatch run true

# Install executable files and set permissions
COPY ../entrypoint.sh .
COPY ../run.py .
COPY ./docker/entrypoint.sh .
COPY ./run.py .
RUN chmod ugo+x ./entrypoint.sh

# Open appropriate ports
Expand Down

0 comments on commit 8135427

Please sign in to comment.