Last active
February 2, 2022 22:04
-
-
Save jhowbhz/e42b37b76c67f7a83ddf03eee60aa788 to your computer and use it in GitHub Desktop.
WppConnect server docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RUN apk add chromium | |
RUN apk update && apk add wget | |
RUN npm install pm2 -g | |
RUN apk add wget | |
RUN apk add git | |
RUN git clone https://github.com/wppconnect-team/wppconnect-server.git /home/node/app | |
COPY ./config.json /home/node/app/src | |
COPY ./swagger.json /home/node/app/src | |
RUN yarn install | |
RUN yarn build | |
ENV DOCKERIZE_VERSION v0.6.1 | |
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \ | |
&& tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \ | |
&& rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz | |
COPY --from=builder /home/node/app/ . | |
WORKDIR /home/node/app | |
CMD ["pm2-runtime", "./dist/server.js"] | |
EXPOSE 21465 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment