Comments (1)
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)
- Update version and RELEASENOTES.md for release 8.1.2
- latest - cordova build fail because of gradle
- 9.0.0
- rel/9.0.0
- Builds no longer working : major version release of the Google Play Services and Firebase libaries on June 17 HOT 1
- Upgrade node to latest LTS HOT 2
- Using latest causes build to fail with "missing tools"
- Outdated sdk licenses HOT 2
- Latest is broken HOT 1
- Not build after last docker image push HOT 5
- 10.0.0
- rel/10.0.0
- Cordova version 10. HOT 2
- JAVA_HOME is invalid HOT 1
- Caching Gradle in Docker layer HOT 1
- Old openJDK version in v2023.01.1 HOT 2
- Missing ANDROID_HOME environment variable HOT 3
- Missing SDK 32.0.0 HOT 3
- empty $ANDROID_HOME directory & missing 32.x build-tools in v2023.04.1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-cordova.