Comments (5)
Perfect, thanks again!
from docker-python-nodejs.
You can use https://github.com/nikolaik/docker-python-nodejs/blob/main/Dockerfile and adapt it to your needs.
With a few changes (dropped poetry) this can probably help you:
FROM python:2.7
LABEL org.opencontainers.image.authors="Nikolai R Kristiansen <[email protected]>"
RUN groupadd --gid 1000 pn && useradd --uid 1000 --gid pn --shell /bin/bash --create-home pn
ENV POETRY_HOME=/usr/local
# Install node prereqs, nodejs and yarn
# Ref: https://deb.nodesource.com/setup_14.x
# Ref: https://yarnpkg.com/en/docs/install
RUN \
echo "deb https://deb.nodesource.com/node_14.x buster main" > /etc/apt/sources.list.d/nodesource.list && \
wget -qO- https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list && \
wget -qO- https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
apt-get update && \
apt-get upgrade -yqq && \
apt-get install -yqq nodejs yarn && \
pip install -U pip && pip install pipenv && \
npm i -g npm@^8 && \
rm -rf /var/lib/apt/lists/*
from docker-python-nodejs.
Thank you!
from docker-python-nodejs.
Buto still give me this error:
python3 build_versions/main.py -d "alpine" --dockerfile-from-config "Dockerfile" --verbose --dry-run --force
Namespace(distros=['alpine'], dry_run=True, ci_config=False, ci_trigger='webhook', release=False, dockerfile_from_config=<_io.TextIOWrapper name='Dockerfile' mode='r' encoding='UTF-8'>, force=True, verbose=True)
Traceback (most recent call last):
File "/Users/claudio/www/works/tuc/docker-python-nodejs/build_versions/main.py", line 66, in
main(
File "/Users/claudio/www/works/tuc/docker-python-nodejs/build_versions/main.py", line 13, in main
render_dockerfile_by_config(dockerfile_config, dry_run)
File "/Users/claudio/www/works/tuc/docker-python-nodejs/build_versions/dockerfile.py", line 45, in render_dockerfile_by_config
version = json.load(fp)
^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/[email protected]/3.11.2_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/json/init.py", line 293, in load
return loads(fp.read(),
^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/[email protected]/3.11.2_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/json/init.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/[email protected]/3.11.2_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/[email protected]/3.11.2_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
from docker-python-nodejs.
Buto still give me this error
You don't need to run the build scripts, you can simply use the docker cli to build your image with the above Dockerfile with docker build .
.
from docker-python-nodejs.
Related Issues (20)
- Messing with Pterodactyl HOT 1
- Deprecated keyring warning in `apt-get` HOT 7
- DNS Lookup Error HOT 3
- python3.11-nodejs20 image contains Node v21.5 HOT 4
- Add bun.js to the matrix HOT 1
- Good HOT 1
- Dependency Dashboard
- poetry version outdated HOT 1
- Bump GPG key HOT 3
- Bump GPG key again for python3.6-nodejs12 image HOT 4
- Missing License Information HOT 1
- docs: EOL status for python and nodejs in README
- arm64 on alpine
- `poetry` missing in `python3.8-*` images HOT 1
- Yarn missing in Alpine builds HOT 6
- Python installed two times with different versions HOT 3
- Error response from daemon HOT 2
- Weird error re fonts HOT 12
- Support for Debian Bookworm HOT 2
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-python-nodejs.