Add docker and docker compose deployment files

This commit is contained in:
2022-09-16 14:41:50 -06:00
parent a7bedb3dcd
commit 7154ddc700
4 changed files with 25 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
server.toml
+1
View File
@@ -0,0 +1 @@
server.toml
+11
View File
@@ -0,0 +1,11 @@
FROM golang:1.19-bullseye as builder
MAINTAINER restitux <restitux@ohea.xyz>
COPY . /server
WORKDIR /server
RUN go build .
FROM debian:bullseye
COPY --from=builder /server/server /server
ENTRYPOINT ["/server"]
+12
View File
@@ -0,0 +1,12 @@
version: "3.3"
services:
cursorius-server:
build:
context: .
dockerfile: ./Dockerfile
ports:
- "127.0.0.1:45420:45420"
volumes:
- "./server.toml:/root/.config/cursorius/server.toml"
- "/home/robby/development/restitux/ohea/cursorius/test/server/job:/job"
- "/var/run/docker.sock:/var/run/docker.sock"