Dockerize application
This commit is contained in:
parent
d1e4d64fd6
commit
3194998503
|
@ -0,0 +1,11 @@
|
|||
FROM golang:1.22-alpine
|
||||
|
||||
RUN mkdir /app
|
||||
|
||||
ADD . /app
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN go build -o main .
|
||||
|
||||
CMD ["/app/main", "server"]
|
|
@ -0,0 +1,20 @@
|
|||
version: '3'
|
||||
|
||||
networks:
|
||||
tiamat:
|
||||
driver: bridge
|
||||
|
||||
services:
|
||||
tiamat:
|
||||
container_name: "tiamat"
|
||||
#image: "tiamat"
|
||||
build:
|
||||
context: .
|
||||
dockerfile: "Dockerfile"
|
||||
ports:
|
||||
- 8080:8080
|
||||
- 1302:1302
|
||||
networks:
|
||||
- tiamat
|
||||
volumes:
|
||||
- ./sample-config/:/root/.config/tiamat/
|
Loading…
Reference in New Issue