Skip to content

Commit 2b68c40

Browse files
authored
Amend Dockerfile permission issue (canada-ca#615)
1 parent f35089b commit 2b68c40

8 files changed

Lines changed: 4 additions & 3 deletions

File tree

services/auto-scan/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ ENV HOME /autoscan
55
WORKDIR $HOME
66
COPY . ./
77

8-
RUN useradd -r -u 1001 autoscan
9-
USER autoscan
10-
118
RUN apt-get update
129
RUN apt-get install -y --no-install-recommends apt-utils && \
1310
apt-get install -y --no-install-recommends python3 python3-pip && \
@@ -16,4 +13,8 @@ apt-get install -y --no-install-recommends python3-setuptools python3-wheel
1613
# Install dependencies.
1714
RUN python3 -m pip install -r requirements.txt
1815

16+
RUN chmod +x autoscan.py
17+
RUN useradd -r -u 1001 autoscan
18+
USER autoscan
19+
1920
ENTRYPOINT ["python3", "autoscan.py"]

services/db-migration/migrations/README

100644100755
File mode changed.

services/db-migration/migrations/env.py

100644100755
File mode changed.

services/db-migration/migrations/script.py.mako

100644100755
File mode changed.

services/db-migration/migrations/versions/641d69cc2685_initial_revision.py

100644100755
File mode changed.

services/db-migration/models/__init__.py

100644100755
File mode changed.

services/db-migration/requirements.txt

100644100755
File mode changed.

services/db-migration/tests/test_that_migrations_have_a_single_head.py

100644100755
File mode changed.

0 commit comments

Comments
 (0)