akshettrj / watgbridge

A forwarder from WhatsApp to Telegram written in GoLang
MIT License
165 stars 40 forks source link

add docker #20

Closed X-Gorn closed 1 year ago

X-Gorn commented 1 year ago

Hope you could add docker for this repository.

X-Gorn commented 1 year ago

I've tried to add dockerfile with this code:

# syntax=docker/dockerfile:1

FROM golang:1.19.8-alpine AS build

RUN apk --no-cache add gcc g++ make git libwebp-dev libwebp-tools ffmpeg
WORKDIR /go/src/watgbridge
COPY . /go/src/watgbridge

RUN go build

CMD ["./watgbridge"]

i'm running this on ubuntu vps, after doing the docker run xxxx it runs fine, but after detaching/closing the vps it stop running. had no idea to fix this, hope you can fix it.

akshettrj commented 1 year ago

I think you have to do docker run -d xxxx to make it run in background.

akshettrj commented 1 year ago

You dockerfile looks great, I will just add imagemagick in the package list and add to the repo.

Thanks