Skip to content

Commit

Permalink
Move COPY command down the file
Browse files Browse the repository at this point in the history
By moving the COPY command under the apk command, the package installation no longer runs on every change
  • Loading branch information
NotActuallyTerry committed Jun 9, 2024
1 parent 11bb420 commit c7fd215
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ ARG TZ='UTC'

ENV DEFAULT_TZ ${TZ}

COPY . /opt/github-team-sync
WORKDIR /opt/github-team-sync

RUN apk add --no-cache \
libxml2-dev \
libxslt-dev \
Expand All @@ -26,6 +23,9 @@ RUN apk add --no-cache \
# Fix the warning where no timezone is specified
RUN cp /usr/share/zoneinfo/${DEFAULT_TZ} /etc/localtime

COPY . /opt/github-team-sync
WORKDIR /opt/github-team-sync

RUN pip install --no-cache-dir --upgrade pipenv

RUN pipenv install
Expand Down

0 comments on commit c7fd215

Please sign in to comment.