Add files for local execution in Docker

This commit is contained in:
2024-07-28 19:30:28 +03:00
parent 50ad50d61f
commit 4dc77effd6
3 changed files with 23 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
TELEGRAM_BOT_TOKEN=test
OWNER_CHAT_ID=123
+11
View File
@@ -0,0 +1,11 @@
FROM golang:1.22
WORKDIR /app
COPY * ./
RUN go mod download
RUN CGO_ENABLED=0 GOOS=linux go build cmd/anon3anon/main.go -o /anon3anon
CMD ["/anon3anon"]
+10
View File
@@ -0,0 +1,10 @@
version: "3.9"
services:
anon3anon:
container_name: anon3anon
build:
context: .
dockerfile: Dockerfile
env_file:
- .env