Skip to content

Commit

Permalink
Fix image permission after switch to ADO (#933) - fix for 1.4 branch (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
halamix2 authored Apr 29, 2024
1 parent 78c8d4f commit 16636fb
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 6 deletions.
10 changes: 7 additions & 3 deletions components/runtimes/nodejs/nodejs18/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ RUN mkdir -p /usr/src/app
RUN mkdir -p /usr/src/app/lib
WORKDIR /usr/src/app

COPY ./nodejs18/package.json /usr/src/app/
COPY --chown=root:root ./nodejs18/package.json /usr/src/app/
RUN chmod 644 /usr/src/app/package.json

RUN npm install && npm cache clean --force
COPY ./lib /usr/src/app/lib
COPY --chown=root:root ./lib /usr/src/app/lib
RUN chmod -R 755 /usr/src/app/lib

COPY ./server.js /usr/src/app/server.js
COPY --chown=root:root ./server.js /usr/src/app/server.js
RUN chmod 644 /usr/src/app/server.js

CMD ["npm", "start"]

Expand Down
10 changes: 7 additions & 3 deletions components/runtimes/nodejs/nodejs20/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ RUN mkdir -p /usr/src/app
RUN mkdir -p /usr/src/app/lib
WORKDIR /usr/src/app

COPY ./nodejs20/package.json /usr/src/app/
COPY --chown=root:root ./nodejs20/package.json /usr/src/app/
RUN chmod 644 /usr/src/app/package.json

RUN npm install && npm cache clean --force
COPY ./lib /usr/src/app/lib
COPY --chown=root:root ./lib /usr/src/app/lib
RUN chmod -R 755 /usr/src/app/lib

COPY ./server.js /usr/src/app/server.js
COPY --chown=root:root ./server.js /usr/src/app/server.js
RUN chmod 644 /usr/src/app/server.js

CMD ["npm", "start"]

Expand Down
3 changes: 3 additions & 0 deletions components/runtimes/python/python312/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ LABEL source = [email protected]:kyma-project/kyma.git
RUN apk add --no-cache --virtual .build-deps build-base linux-headers

COPY ./python312/requirements.txt /kubeless/requirements.txt
RUN chmod 644 /kubeless/requirements.txt

RUN pip install --no-cache-dir -r /kubeless/requirements.txt

COPY ./ /
RUN chmod -R 755 /lib
RUN chmod 644 /kubeless.py

WORKDIR /

Expand Down
3 changes: 3 additions & 0 deletions components/runtimes/python/python39/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ LABEL source = [email protected]:kyma-project/kyma.git
RUN apk add --no-cache --virtual .build-deps build-base linux-headers

COPY ./python39/requirements.txt /kubeless/requirements.txt
RUN chmod 644 /kubeless/requirements.txt

RUN pip install --no-cache-dir -r /kubeless/requirements.txt

COPY ./ /
RUN chmod -R 755 /lib
RUN chmod 644 /kubeless.py

WORKDIR /

Expand Down

0 comments on commit 16636fb

Please sign in to comment.