GithubHelp home page GithubHelp logo

Comments (5)

claudioferrari avatar claudioferrari commented on July 24, 2024 1

Perfect, thanks again!

from docker-python-nodejs.

nikolaik avatar nikolaik commented on July 24, 2024

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.

claudioferrari avatar claudioferrari commented on July 24, 2024

Thank you!

from docker-python-nodejs.

claudioferrari avatar claudioferrari commented on July 24, 2024

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.

nikolaik avatar nikolaik commented on July 24, 2024

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)

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.