79346645

Date: 2025-01-10 18:13:29
Score: 1
Natty:
Report link

File Permissions Issue:

1: In the Docker build context, the files you copy into the container retain their permissions unless explicitly changed.

2: If the configure file does not have execute (+x) permissions locally, it will not be executable in the container.

Updated Dockerfile:

FROM mcr.microsoft.com/dotnet/runtime:8.0 AS base

RUN apt-get update RUN apt-get install -y libmotif-dev build-essential

COPY . /usr/src/myapp

WORKDIR /usr/src/myapp/oracle-outside-in-content-access-8.5.7.0.0-linux-x86-64/sdk/samplecode/unix/

RUN chmod +x ./configure

RUN ls -l

RUN make

WORKDIR /app

RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R

appuser /app

USER appuser

COPY . .

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Arish