Giter Site home page Giter Site logo

run on a Server or Docker about venom HOT 3 CLOSED

orkestral avatar orkestral commented on May 19, 2024
run on a Server or Docker

from venom.

Comments (3)

orkestral avatar orkestral commented on May 19, 2024 3

At the moment we only support here for problems on Venom, for these details we have a group on whatsapp, with more than 50 people to help you.

https://chat.whatsapp.com/CMJYfPFqRyE2GxrnkldYED

Thank You!

from venom.

myfjdthink avatar myfjdthink commented on May 19, 2024 3

Here is a working demo, it may help. @nathanribeiroo

FROM buildkite/puppeteer as base

WORKDIR /app

# ------------ Dependencies for sharp ------------
RUN  apt-get update \
     && apt-get install -y build-essential python3

COPY package.json .
RUN npm install --production --registry=https://registry.npm.taobao.org --disturl=https://npm.taobao.org/mirrors/node --build-from-source && mv node_modules prod_node_modules
RUN npm install --registry=https://registry.npm.taobao.org --disturl=https://npm.taobao.org/mirrors/node --build-from-source

# ------------ build ------------
FROM buildkite/puppeteer as build
WORKDIR /app
COPY --from=base /app/node_modules ./node_modules
COPY src ./src
COPY tsconfig.json tsconfig.build.json package.json ./
RUN npm run build

# ------------ main ------------
FROM buildkite/puppeteer as prod

WORKDIR /app
COPY --from=base /app/prod_node_modules ./node_modules
COPY --from=build /app/dist ./dist
COPY --from=build /app/package.json .

CMD ["npm","start"]
EXPOSE 3000

from venom.

chrisk8er avatar chrisk8er commented on May 19, 2024

hi @myfjdthink thanks for sharing, after i got an error after i run the dockerfile

whatsapp-api | info:     Checking for updates
whatsapp-api | info:     You're up to date
whatsapp-api | info:     [admin:browser] Initializing browser...
whatsapp-api | error:    [admin:browser] Error no open browser
whatsapp-api | error:    [admin:browser] Failed to launch the browser process!
whatsapp-api | [0204/112019.031191:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
whatsapp-api | 
whatsapp-api | 
whatsapp-api | TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md
whatsapp-api |

please help... thanks

from venom.

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.