Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix image permission after switch to ADO (#933) - fix for 1.4 branch #934

Merged
merged 1 commit into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading