build(docker): setup Dockerfile, docker-compose and .env
This commit is contained in:
parent
a30bda9de3
commit
8ffd8a7f0f
5 changed files with 45 additions and 0 deletions
13
Dockerfile
Normal file
13
Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
|||
FROM golang:1.22-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN apk add git
|
||||
|
||||
RUN go mod tidy && go build -o app .
|
||||
|
||||
ENV TOKEN=""
|
||||
|
||||
CMD ./app -token $TOKEN
|
Loading…
Add table
Add a link
Reference in a new issue