aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-04-14 14:36:29 +0200
committerAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-04-14 14:36:29 +0200
commit8ffd8a7f0f48bfb5b70667a5f4c1af523f18d495 (patch)
treec550fcd7551320186411beed3cc1ec7d991299b8 /Dockerfile
parenta30bda9de37b6b52083ed6a8401ab368009c7a5c (diff)
build(docker): setup Dockerfile, docker-compose and .env
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..b56e430
--- /dev/null
+++ b/Dockerfile
@@ -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