Giter Site home page Giter Site logo

Comments (1)

beevelop avatar beevelop commented on June 10, 2024

Thank you for raising issue. I tried a simple configuration to run the Docker image as non-root with the following configuration:

FROM beevelop/cordova

# Add a non-root user to run the container
RUN addgroup --gid 1001 bee && \
    adduser --uid 1001 --ingroup bee --home /home/bee --shell /bin/sh --disabled-password bee

# Set the user to run the container
USER bee

# Set the working directory
WORKDIR /home/bee
# running this with docker run -it bee bash
bee@1e81c3fe403f:~$ whoami
bee
bee@1e81c3fe403f:~$ cordova -v
? May Cordova anonymously report usage statistics to improve the tool over time? No

You have been opted out of telemetry. To change this, run: cordova telemetry on.
12.0.0 ([email protected])
bee@1e81c3fe403f:~$ cordova create foo
Creating a new cordova project.
bee@1e81c3fe403f:~$ cd foo/
bee@1e81c3fe403f:~/foo$ ls
config.xml  package.json  www
bee@1e81c3fe403f:~/foo$ cordova platform add android
Using cordova-fetch for cordova-android
Adding android project...
Creating Cordova project for the Android platform:
        Path: platforms/android
        Package: io.cordova.hellocordova
        Name: HelloCordova
        Activity: MainActivity
        Android Target SDK: android-33
        Android Compile SDK: 33
Subproject Path: CordovaLib
Subproject Path: app
Android project created with [email protected]
bee@1e81c3fe403f:~/foo$ cordova build android
Checking Java JDK and Android SDK versions
[...]
BUILD SUCCESSFUL in 1m 49s
50 actionable tasks: 50 executed

Are you able to use a custom image with the above instructions? That might resolve the wrong file permissions.

from docker-cordova.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.